tacticalrmm/docker/nginx-proxy/mesh.conf

38 lines
958 B
Plaintext
Raw Normal View History

2020-02-12 16:18:43 +00:00
server {
resolver 127.0.0.11 valid=30s;
2020-02-12 16:18:43 +00:00
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;
2020-02-12 16:18:43 +00:00
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;
}
2020-04-06 18:21:52 +00:00
}
server {
resolver 127.0.0.11 valid=30s;
listen 80;
server_name ${MESH_HOST};
return 301 https://$server_name$request_uri;
}