change to comply new nixos service

This commit is contained in:
Ray Andrew 2024-10-11 23:21:44 -05:00
parent ab57339d71
commit 3f51a5132b

View file

@ -132,7 +132,7 @@ in
ENABLED = true; ENABLED = true;
}; };
cors = { cors = {
ALLOW_DOMAIN = config.services.gitea.domain; ALLOW_DOMAIN = config.services.gitea.settings.server.DOMAIN;
ENABLED = true; ENABLED = true;
SCHEME = "https"; SCHEME = "https";
}; };
@ -206,7 +206,7 @@ in
virtualHosts."git.rs.ht" = { virtualHosts."git.rs.ht" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/".proxyPass = "http://localhost:${toString config.services.gitea.httpPort}"; locations."/".proxyPass = "http://localhost:${toString config.services.gitea.settings.server.HTTP_PORT}";
}; };
}; };