chore: sync local updates
This commit is contained in:
42
公网部署/monitor.shumengya.top.conf
Normal file
42
公网部署/monitor.shumengya.top.conf
Normal file
@@ -0,0 +1,42 @@
|
||||
# 萌芽监控 — 前端 monitor.shumengya.top(HTTPS)
|
||||
# 内网静态源:按需修改 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user