ansible/roles/nginx/templates/nginx/snippets/options-proxypass.conf.j2
Yohann D'ANELLO ae151321db
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
[nginx/certbot] Clone roles from Crans
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-02-24 11:46:37 +01:00

19 lines
494 B
Django/Jinja

{{ ansible_managed | comment }}
proxy_redirect off;
proxy_set_header Host $host;
# Pass the real client IP
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Tell proxified server that we are HTTPS, fix Wordpress
proxy_set_header X-Forwarded-Proto https;
# WebSocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
# For Owncloud WebDav
client_max_body_size 10G;