diff --git a/services/nginx.nix b/services/nginx.nix index e12eb3c..d08d16b 100644 --- a/services/nginx.nix +++ b/services/nginx.nix @@ -34,7 +34,7 @@ mkIf (elem "nginx" config.machine.services) { forceSSL = true; extraConfig = '' location / { - proxy_pass http://${config.services.hydra.listenHost}:${config.services.hydra.port}; + proxy_pass http://${config.services.hydra.listenHost}:${toString config.services.hydra.port}; proxy_set_header Host $http_host; proxy_set_header REMOTE_ADDR $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; @@ -46,9 +46,9 @@ mkIf (elem "nginx" config.machine.services) { enableACME = true; forceSSL = true; root = "/var/cache/hydra"; - extraConfig = '' - autoindex on; - ''; + # extraConfig = '' + # autoindex on; + # ''; }; "mail.${config.machine.domain}" = mkIf config.mailserver.enable { enableACME = true; @@ -164,7 +164,7 @@ mkIf (elem "nginx" config.machine.services) { location @node { client_max_body_size 0; - proxy_pass http://${config.services.gitea.httpAddress}:${config.services.gitea.httpPort}; + proxy_pass http://${config.services.gitea.httpAddress}:${toString config.services.gitea.httpPort}; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $http_host;