temporarily deploy forgejo

This commit is contained in:
Clara Dautermann 2025-04-17 19:23:49 +02:00
parent f51a453c14
commit 7693a3ccc0
Signed by: clara
GPG key ID: 223391B52FAD4463
5 changed files with 69 additions and 36 deletions

View 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
];
}

View file

@ -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;