Browse Source

更新配置

liu 10 months ago
parent
commit
2cb6cd7fe4
1 changed files with 7 additions and 4 deletions
  1. 7 4
      nginx-1.26.3/conf/nginx.conf

+ 7 - 4
nginx-1.26.3/conf/nginx.conf

@@ -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;
         }
     }