server { listen 80; listen [::]:80; server_name {{YOUR_DOMAIN}} www.{{YOUR_DOMAIN}}; access_log /var/log/nginx/mysite.com.access.log; error_log /var/log/nginx/mysite.com.error.log; location / { proxy_pass http://host.docker.internal:{{PORT}}; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } }