server { resolver 127.0.0.11 valid=30s; listen 443 ssl; proxy_send_timeout 330s; proxy_read_timeout 330s; server_name ${MESH_HOST}; ssl_certificate /cert/fullchain.pem; ssl_certificate_key /cert/privkey.pem; ssl_session_cache shared:WEBSSL:10m; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; location / { #Using variable to disable start checks set $meshcentral http://meshcentral:443; proxy_pass $meshcentral; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header X-Forwarded-Host $host:$server_port; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } } server { resolver 127.0.0.11 valid=30s; listen 80; server_name ${MESH_HOST}; return 301 https://$server_name$request_uri; }