|
|
@@ -16,31 +16,23 @@ server {
|
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-# location /files/ {
|
|
|
-# rewrite ^/files/(.*)$ /$1 break;
|
|
|
-# 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 Host $http_host;
|
|
|
-#
|
|
|
-# proxy_connect_timeout 300;
|
|
|
-# # Default is HTTP/1, keepalive is only enabled in HTTP/1.1
|
|
|
-# proxy_http_version 1.1;
|
|
|
-# proxy_set_header Connection "";
|
|
|
-# chunked_transfer_encoding off;
|
|
|
-#
|
|
|
-# proxy_pass http://minio:9000;
|
|
|
-# }
|
|
|
-
|
|
|
location / {
|
|
|
root /var/frontend;
|
|
|
index index.php;
|
|
|
try_files $uri $uri/ /index.php?$query_string;
|
|
|
}
|
|
|
|
|
|
-# location /api {
|
|
|
-# try_files $uri $uri/ /index.php?$query_string;
|
|
|
-# gzip_static on;
|
|
|
-# }
|
|
|
+ location /ws {
|
|
|
+ proxy_pass http://websocket:9000;
|
|
|
+ proxy_set_header X-Real-IP $remote_addr;
|
|
|
+ proxy_set_header Host $host;
|
|
|
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
+ proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
+
|
|
|
+ # WebSocket support
|
|
|
+ proxy_http_version 1.1;
|
|
|
+ proxy_set_header Upgrade $http_upgrade;
|
|
|
+ proxy_set_header Connection "upgrade";
|
|
|
+ proxy_read_timeout 600s;
|
|
|
+ }
|
|
|
}
|