magpie/gitea: update config syntax

This commit is contained in:
Asmir A 2023-10-05 19:04:23 +02:00
parent 48e0a3c06d
commit 695157c354

View File

@ -113,12 +113,12 @@
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
}; };
virtualHosts.${config.services.gitea.settings.server.domain} = { virtualHosts.${config.services.gitea.settings.server.DOMAIN} = {
quic = true; quic = true;
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://localhost:${toString config.services.gitea.settings.server.httpPort}"; proxyPass = "http://localhost:${toString config.services.gitea.settings.server.HTTP_PORT}";
}; };
}; };
virtualHosts.${config.services.restya-board.virtualHost.serverName} = { virtualHosts.${config.services.restya-board.virtualHost.serverName} = {
@ -144,9 +144,8 @@
type = "postgres"; type = "postgres";
passwordFile = config.sops.secrets."postgres/gitea_dbpass".path; passwordFile = config.sops.secrets."postgres/gitea_dbpass".path;
}; };
settings.server.domain = "git.project-cloud.net"; settings.server.DOMAIN = "git.project-cloud.net";
settings.server.rootUrl = "https://git.project-cloud.net/"; settings.server.HTTP_PORT = 3001;
settings.server.httpPort = 3001;
extraConfig = let extraConfig = let
docutils = docutils =
pkgs.python3.withPackages (ps: with ps; [docutils pygments]); pkgs.python3.withPackages (ps: with ps; [docutils pygments]);