🔗Custom domain + HTTPS
Use a custom domain with Twake
Use port 80 or 443 over https
# /etc/nginx/site-enabled/default
location / {
proxy_pass http://127.0.0.1:8000;
}
location /socketcluster/ {
proxy_pass http://127.0.0.1:8000/socketcluster/;
# this magic is needed for WebSocket
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_connect_timeout 7d;
proxy_send_timeout 7d;
proxy_read_timeout 7d;
}Configure domain name
Last updated