Port options in nginx configuration need to strings.

This commit is contained in:
Kevin Baensch 2019-03-25 00:55:34 +01:00
parent e745bdea3d
commit 31aa2297a4

View file

@ -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;