[pi4] Added initial Nginx config

This commit is contained in:
2025-06-03 19:35:54 +00:00
parent 575452512a
commit b3e6222cac
4 changed files with 93 additions and 3 deletions

View File

@ -6,12 +6,21 @@
...
}:
let
cfg = config.services.forgejo;
srv = cfg.settings.server;
domain = "beta.code.${common.domain}";
passwordKey = "forgejo/admin-pass";
runnerTokenKey = "forgejo/runner-token";
in
{
services = {
nginx.virtualHosts.${domain} = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://127.0.0.1:${builtins.toString srv.HTTP_PORT}";
serverAliases = [ "beta.git.${common.domain}" ];
};
forgejo = {
enable = true;
database.type = "postgres";