temporarily deploy forgejo
This commit is contained in:
parent
f51a453c14
commit
7693a3ccc0
5 changed files with 69 additions and 36 deletions
19
configs/containers/forgejo_container.nix
Normal file
19
configs/containers/forgejo_container.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ lib, pkgs, config, ... }: {
|
||||
|
||||
deployment = {
|
||||
targetHost = "192.168.178.60";
|
||||
targetPort = 22;
|
||||
targetUser = "root";
|
||||
};
|
||||
networking.hostName = "forgejo";
|
||||
networking.interfaces.wgbr.ipv4.addresses = [
|
||||
{
|
||||
address = "10.8.1.4";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
imports = [
|
||||
../container_config.nix
|
||||
../services/forgejo.nix
|
||||
];
|
||||
}
|
||||
|
|
@ -1,7 +1,8 @@
|
|||
{ lib, pkgs, config, ... }:
|
||||
let
|
||||
dbname = "forgejo";
|
||||
ssh_port = 2000;
|
||||
ssh_port = 2224;
|
||||
domain = "new.git.cdaut.de";
|
||||
in
|
||||
{
|
||||
|
||||
|
|
@ -15,7 +16,8 @@ in
|
|||
|
||||
settings = {
|
||||
server = {
|
||||
DOMAIN = "192.168.178.50";
|
||||
ROOT_URL = "https://${domain}";
|
||||
DOMAIN = domain;
|
||||
SSH_PORT = ssh_port;
|
||||
# important because otherwise ssh doesn't seem to work…
|
||||
START_SSH_SERVER = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue