Refactor chat configuration: update .env.example for Reverb settings, streamline Pusher configuration in SupportChatController, and enhance chat.js to dynamically determine websocket endpoint based on host. This improves flexibility for local and production environments.
This commit is contained in:
1 parent
3a415edb6e
commit
f68db67465
4 files changed
+92
-13
No files matched your search
@@ -0,0 +1,25 @@
|
||||
# Laravel Reverb websocket proxy for mm.com.tm
|
||||
#
|
||||
# Paste this location into the existing HTTPS server { } for mm.com.tm,
|
||||
# BEFORE any frontend SPA catch-all.
|
||||
#
|
||||
# Reverb (supervisor) stays on 127.0.0.1:8080.
|
||||
# Browsers connect to wss://mm.com.tm/app/...
|
||||
|
||||
location /app {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header Scheme $scheme;
|
||||
proxy_set_header SERVER_PORT $server_port;
|
||||
proxy_set_header REMOTE_ADDR $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
|
||||
proxy_connect_timeout 60s;
|
||||
proxy_send_timeout 60s;
|
||||
proxy_read_timeout 86400s;
|
||||
proxy_buffering off;
|
||||
|
||||
proxy_pass http://127.0.0.1:8080;
|
||||
}
|
||||
Reference in new issue
Block a user