2026-07-02 14:58:47 +08:00
|
|
|
server {
|
|
|
|
|
listen 80;
|
|
|
|
|
server_name app.anzhizhichong.com;
|
|
|
|
|
return 301 https://$server_name$request_uri;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
server {
|
|
|
|
|
listen 443 ssl http2;
|
|
|
|
|
server_name app.anzhizhichong.com;
|
|
|
|
|
|
|
|
|
|
ssl_certificate /etc/nginx/ssl/app.anzhizhichong.com.pem;
|
|
|
|
|
ssl_certificate_key /etc/nginx/ssl/app.anzhizhichong.com.key;
|
|
|
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
|
|
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
|
|
|
|
|
2026-07-02 15:42:51 +08:00
|
|
|
# 产品介绍页
|
|
|
|
|
root /data/landing;
|
2026-07-02 14:58:47 +08:00
|
|
|
index index.html;
|
|
|
|
|
|
2026-07-02 15:18:45 +08:00
|
|
|
location /doc/ {
|
2026-07-02 14:58:47 +08:00
|
|
|
proxy_pass http://127.0.0.1:3080/;
|
|
|
|
|
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 $scheme;
|
|
|
|
|
client_max_body_size 500m;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location /pms/api/ {
|
|
|
|
|
proxy_pass http://127.0.0.1:9000/;
|
|
|
|
|
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 $scheme;
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-02 17:47:57 +08:00
|
|
|
# PMS管理前端 - 不带斜杠时重定向
|
|
|
|
|
location = /pms {
|
|
|
|
|
return 301 /pms/;
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-02 15:42:51 +08:00
|
|
|
# PMS管理前端
|
2026-07-02 14:58:47 +08:00
|
|
|
location /pms/ {
|
2026-07-02 15:42:51 +08:00
|
|
|
alias /data/pms/web/;
|
2026-07-02 14:58:47 +08:00
|
|
|
try_files $uri $uri/ /pms/index.html;
|
|
|
|
|
}
|
|
|
|
|
}
|