소스 검색

新增80端口,临时给AI用的

liu 11 달 전
부모
커밋
5ba398c3bd
1개의 변경된 파일12개의 추가작업 그리고 9개의 파일을 삭제
  1. 12 9
      nginx-1.26.3/conf/nginx.conf

+ 12 - 9
nginx-1.26.3/conf/nginx.conf

@@ -149,16 +149,19 @@ http {
 
     # another virtual host using mix of IP-, name-, and port-based configuration
     #
-    #server {
-    #    listen       8000;
-    #    listen       somename:8080;
-    #    server_name  somename  alias  another.alias;
+    server {
+        listen       80 ssl;
+        server_name  api.ygtxfj.com;
 
-    #    location / {
-    #        root   html;
-    #        index  index.html index.htm;
-    #    }
-    #}
+        # 证书路径
+        ssl_certificate scs1739178580156_api.ygtxfj.com_server.crt;  # 证书文件(含完整链)
+        ssl_certificate_key scs1739178580156_api.ygtxfj.com_server.key; 
+
+        location /fLxiFxSceH.txt {
+            proxy_pass http://localhost:8080/static/fLxiFxSceH.txt;
+            expires 30d; # 缓存优化
+        }
+    }
 
 
     # HTTPS server