39 lines
1.0 KiB
Plaintext
39 lines
1.0 KiB
Plaintext
|
server {
|
||
|
|
||
|
listen 80;
|
||
|
server_name ${MESH_HOST};
|
||
|
|
||
|
location / {
|
||
|
proxy_pass http://meshcentral;
|
||
|
proxy_http_version 1.1;
|
||
|
|
||
|
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 {
|
||
|
|
||
|
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 / {
|
||
|
proxy_pass http://meshcentral:443;
|
||
|
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;
|
||
|
}
|
||
|
}
|