nginx/proxy: Moved directives var to defaults

Overwrites directives in default of following roles
dehydrated
Felix Stupp 4 years ago
parent be218e813e
commit 34b867994c
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -3,4 +3,22 @@
# domain: example.com
# backend_port: 12345 OR backend_socket: /example.socket
# upstream_name (optional)
# directives for proxy forwarding, prefer additional_directives
directives: |
{{ additional_directives }}
location / {
proxy_pass http://{{ upstream_name }};
proxy_read_timeout 300;
proxy_connect_timeout 300;
proxy_http_version 1.1;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
additional_directives: ""

@ -1,17 +0,0 @@
---
directives: |
{{ additional_directives }}
location / {
proxy_pass http://{{ upstream_name }};
proxy_read_timeout 300;
proxy_connect_timeout 300;
proxy_http_version 1.1;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
Loading…
Cancel
Save