25 lines
542 B
Nginx Configuration File
25 lines
542 B
Nginx Configuration File
events {}
|
|
|
|
http {
|
|
server {
|
|
listen 80;
|
|
|
|
location /ws/ {
|
|
proxy_pass http://127.0.0.1:8082;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "Upgrade";
|
|
proxy_set_header Host $host;
|
|
|
|
# Prevent WebSocket timeout
|
|
proxy_read_timeout 36000s; # 1 hour
|
|
proxy_send_timeout 36000s; # 1 hour
|
|
proxy_connect_timeout 75s; # optional
|
|
}
|
|
location ~ /\. {
|
|
deny all;
|
|
access_log off;
|
|
log_not_found off;
|
|
}
|
|
}
|
|
} |