forgejo and maybe more?

This commit is contained in:
tristan 2025-06-18 22:22:20 -04:00
parent 9da5443958
commit b6f2c2a8ef
3 changed files with 31 additions and 4 deletions

View file

@ -16,8 +16,9 @@
reverse_proxy localhost:8000
'';
virtualHosts."http://mumble.mymarseille.duckdns.org".extraConfig = ''
reverse_proxy localhost:64738
virtualHosts."http://forge.mymarseille.duckdns.org".extraConfig = ''
reverse_proxy localhost:3000
'';
};

26
imports/forgejo.nix Normal file
View file

@ -0,0 +1,26 @@
{ config, lib, pkgs, ... }:
{
services.forgejo= {
enable = true;
settings = {
server = {
DOMAIN = "forge.mymarseille.duckdns.org";
ROOT_URL = "https://forge.mymarseille.duckdns.org";
HTTP_PORT = 3000;
DISABLE_SSH = true;
};
session.COOKIE_SECURE = true;
service.DISABLE_REGISTRATION = true;
};
database = {
type = "postgres";
port = 5432;
name = "forgejo";
};
};
}

View file

@ -3,7 +3,7 @@
services.postgresql = {
enable = true;
ensureDatabases = [ "vaultwarden" "hedgedoc" ];
ensureDatabases = [ "vaultwarden" "hedgedoc" "forgejo" ];
authentication = pkgs.lib.mkOverride 10 ''
#type database DBuser IP Range auth-method
local all all trust
@ -22,10 +22,10 @@
ensureDBOwnership = true;
}
];
settings = {
port = 5432;
};
};
}