From 31aa2297a412a19dd4249793f290f20ad2f71126 Mon Sep 17 00:00:00 2001 From: derped Date: Mon, 25 Mar 2019 00:55:34 +0100 Subject: [PATCH] Port options in nginx configuration need to strings. --- services/nginx.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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;