Nginx Options
increate upload limit
client_max_body_size 256M;
reroute after reload
try_files $uri $uri/ /index.html?$query_string;
Increasing timeout connection
- default 60s | good for keeping websocket connection alive
proxy_read_timeout 1800; # keeping connection with ws
location /xyz {
proxy_read_timeout 1800;
proxy_connect_timeout 1800;
proxy_send_timeout 1800;
send_timeout 1800;
}
cors
- Add anywhere to allow all
add_header Access-Control-Allow-Origin *;
Redirect
- from old domain to a new domain
return 301 https://new-domain.url$request_uri;