26 lines
776 B
Plaintext
26 lines
776 B
Plaintext
# 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;
|
|
}
|