refactor gitea.nix: update domain and rootUrl keys for consistency

This commit is contained in:
Danilo Reyes 2025-09-27 22:47:36 -06:00
parent 2ac20c519c
commit de80ff655b

View File

@ -19,8 +19,8 @@ in
sops.secrets = lib.mkIf cfg.enable { gitea.sopsFile = ../../secrets/env.yaml; }; sops.secrets = lib.mkIf cfg.enable { gitea.sopsFile = ../../secrets/env.yaml; };
services.gitea = lib.mkIf cfg.enable { services.gitea = lib.mkIf cfg.enable {
enable = true; enable = true;
DOMAIN = cfg.host; domain = cfg.host;
ROOT_URL = cfg.url; rootUrl = cfg.url;
settings = { settings = {
session.COOKIE_SECURE = true; session.COOKIE_SECURE = true;
server.HTTP_PORT = cfg.port; server.HTTP_PORT = cfg.port;