chore(docker): 增加支持websocket转发功能,PHP容器不暴漏端口到主机

This commit is contained in:
2025-12-19 15:32:34 +08:00
parent 498122f57e
commit ba5c2239ac
10 changed files with 35 additions and 20 deletions

View 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;
}