ansible-role-nginx/templates/reverse_proxy.conf.j2
2023-03-11 21:01:42 +01:00

24 lines
982 B
Django/Jinja

# Managed by Ansible
proxy_http_version {{ nginx_http_version }};
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-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
#proxy_set_header X-HTTPS-Protocol $ssl_protocol;
#proxy_set_header Accept ""; # Problems with Redmine, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=810144
proxy_set_header Connection "";
#proxy_set_header Referer "";
#proxy_cache STATIC;
proxy_cache_valid 200 301 302 4h;
proxy_cache_valid 404 10m;
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
proxy_buffering off;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
proxy_headers_hash_bucket_size {{ nginx_proxy_header_hash_bucket_size | default(64) }};