forked from colonelpanic/dotfiles
[NixOS] Trying to get tls working for gitea
This commit is contained in:
parent
a670741380
commit
85a61fddc6
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -52,9 +52,6 @@ in
|
||||
locations."/" = {
|
||||
proxyPass = "http://[::1]:8222";
|
||||
};
|
||||
# listen = [
|
||||
# { addr = "0.0.0.0"; port = 8443; }
|
||||
# ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user