services: gitea add reverse proxy
This commit is contained in:
parent
0d7adb3563
commit
15c7898e8e
@ -64,6 +64,20 @@
|
|||||||
service.DISABLE_REGISTRATION = true;
|
service.DISABLE_REGISTRATION = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.nginx = {
|
||||||
|
enable = true;
|
||||||
|
recommendedTlsSettings = true;
|
||||||
|
recommendedOptimisation = true;
|
||||||
|
recommendedGzipSettings = true;
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
virtualHosts = {
|
||||||
|
"${config.services.gitea.domain}" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/".proxyPass = "http://localhost:3000";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# age.secrets."services/gitea/mailerPassword" = {
|
# age.secrets."services/gitea/mailerPassword" = {
|
||||||
# file = ../../../secrets/services/gitea/mailerPassword.age;
|
# file = ../../../secrets/services/gitea/mailerPassword.age;
|
||||||
# owner = "gitea";
|
# owner = "gitea";
|
||||||
|
Loading…
Reference in New Issue
Block a user