Port options in nginx configuration need to strings.
This commit is contained in:
parent
e745bdea3d
commit
31aa2297a4
1 changed files with 5 additions and 5 deletions
|
@ -34,7 +34,7 @@ mkIf (elem "nginx" config.machine.services) {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
location / {
|
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 Host $http_host;
|
||||||
proxy_set_header REMOTE_ADDR $remote_addr;
|
proxy_set_header REMOTE_ADDR $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
@ -46,9 +46,9 @@ mkIf (elem "nginx" config.machine.services) {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
root = "/var/cache/hydra";
|
root = "/var/cache/hydra";
|
||||||
extraConfig = ''
|
# extraConfig = ''
|
||||||
autoindex on;
|
# autoindex on;
|
||||||
'';
|
# '';
|
||||||
};
|
};
|
||||||
"mail.${config.machine.domain}" = mkIf config.mailserver.enable {
|
"mail.${config.machine.domain}" = mkIf config.mailserver.enable {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
@ -164,7 +164,7 @@ mkIf (elem "nginx" config.machine.services) {
|
||||||
|
|
||||||
location @node {
|
location @node {
|
||||||
client_max_body_size 0;
|
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-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
|
|
Loading…
Reference in a new issue