chore(docker): 增加支持websocket转发功能,PHP容器不暴漏端口到主机
This commit is contained in:
7
docker/nginx/conf.c/enable-websocket.conf
Normal file
7
docker/nginx/conf.c/enable-websocket.conf
Normal file
@@ -0,0 +1,7 @@
|
||||
location /ws {
|
||||
proxy_pass http://php-fpm:8080;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
Reference in New Issue
Block a user