1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/webmin_ynh.git synced 2024-09-03 20:36:08 +02:00

Add NGINX instructions for websockets

This commit is contained in:
tituspijean 2023-01-28 20:25:21 +01:00 committed by GitHub
parent 4d4d487393
commit ef873f4c75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,8 @@ location __PATH__/ {
proxy_set_header Host $host:$server_port; #this redirects the link without port no proxy_set_header Host $host:$server_port; #this redirects the link without port no
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
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 Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_max_temp_file_size 0; proxy_max_temp_file_size 0;
proxy_connect_timeout 90; proxy_connect_timeout 90;