Files
mengyamonitor/公网部署/monitor.shumengya.top.conf
2026-05-16 19:03:34 +08:00

43 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 萌芽监控 — 前端 monitor.shumengya.topHTTPS
# 内网静态源:按需修改 proxy_pass
upstream mengyamonitor_frontend_upstream {
server 10.1.1.100:6767;
keepalive 16;
}
server {
listen 80;
listen [::]:80;
server_name monitor.shumengya.top;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
server_name monitor.shumengya.top;
ssl_certificate /etc/letsencrypt/live/monitor.shumengya.top/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/monitor.shumengya.top/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / {
proxy_pass http://mengyamonitor_frontend_upstream;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
}
}