services: gitea add reverse proxy

This commit is contained in:
Kabbone 2023-01-03 17:18:39 +01:00
parent 0d7adb3563
commit 15c7898e8e
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY

View File

@ -64,6 +64,20 @@
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" = {
# file = ../../../secrets/services/gitea/mailerPassword.age;
# owner = "gitea";