[NixOS] Trying to get tls working for gitea

This commit is contained in:
Ivan Malison 2023-10-01 13:37:21 -06:00
parent a670741380
commit 85a61fddc6
2 changed files with 19 additions and 3 deletions

View File

@ -7,9 +7,28 @@ makeEnable config "modules.gitea" false {
settings.server = {
DOMAIN = "1896Folsom.duckdns.org";
SSH_PORT = 1123;
HTTP_PORT = 3000;
};
settings.actions = {
ENABLED = true;
};
};
services.nginx = {
enable = true;
virtualHosts = {
"1896Folsom.duckdns.org:3001" = {
enableACME = true;
listen = [{
addr = "0.0.0.0";
port = 3001;
}];
# enableACME = true;
# forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:3000";
};
};
};
};
}

View File

@ -52,9 +52,6 @@ in
locations."/" = {
proxyPass = "http://[::1]:8222";
};
# listen = [
# { addr = "0.0.0.0"; port = 8443; }
# ];
};
};
};