|
|
@@ -169,7 +169,7 @@ http {
|
|
|
# HTTPS server
|
|
|
#
|
|
|
server {
|
|
|
- listen 8123 ssl;
|
|
|
+ listen 443 ssl;
|
|
|
server_name api.ygtxfj.com;
|
|
|
|
|
|
# 证书路径
|
|
|
@@ -181,9 +181,12 @@ http {
|
|
|
#access_log logs/host.access.log main;
|
|
|
|
|
|
# 指向构建后的静态文件目录(使用相对路径)
|
|
|
- location /fLxiFxSceH.txt {
|
|
|
- proxy_pass http://localhost:8080/static/fLxiFxSceH.txt;
|
|
|
- expires 30d; # 缓存优化
|
|
|
+ location / {
|
|
|
+ proxy_pass http://localhost:8125;
|
|
|
+ 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;
|
|
|
}
|
|
|
}
|
|
|
|