commit d6c1c26727bfc56bd868d106b5f39b0dd348b0a1
parent 380b91ac82ebc66f9d32efee25b1cba3c75bcece
Author: Leah Thein <leah@toaster.fritz.box>
Date: Wed, 2 Dec 2020 00:21:46 +0100
parent 380b91ac82ebc66f9d32efee25b1cba3c75bcece
Author: Leah Thein <leah@toaster.fritz.box>
Date: Wed, 2 Dec 2020 00:21:46 +0100
nginx: add global proxy headers configuration
1 file changed, 16 insertions(+), 0 deletions(-)
diff --git a/config-files/nginx/proxy.conf b/config-files/nginx/proxy.conf @@ -0,0 +1,16 @@ +#make websockets possible +proxy_http_version 1.1; +proxy_set_header Upgrade $http_upgrade; +proxy_set_header Connection "upgrade"; + +#some headers needed for some software to work +proxy_redirect off; +proxy_connect_timeout 90; +proxy_send_timeout 90; +proxy_read_timeout 90; +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; +proxy_set_header X-Forwarded-Host $host; +proxy_set_header X-Forwarded-Server $host;