|
|
@@ -168,23 +168,26 @@ http {
|
|
|
|
|
|
# HTTPS server
|
|
|
#
|
|
|
- #server {
|
|
|
- # listen 443 ssl;
|
|
|
- # server_name localhost;
|
|
|
+ server {
|
|
|
+ listen 8123 ssl;
|
|
|
+ server_name api.ygtxfj.com;
|
|
|
|
|
|
- # ssl_certificate cert.pem;
|
|
|
- # ssl_certificate_key cert.key;
|
|
|
+ # 证书路径
|
|
|
+ ssl_certificate scs1746840414500_api.ygtxfj.com_server.crt; # 证书文件(含完整链)
|
|
|
+ ssl_certificate_key scs1746840414500_api.ygtxfj.com_server.key; # 私钥文件
|
|
|
|
|
|
- # ssl_session_cache shared:SSL:1m;
|
|
|
- # ssl_session_timeout 5m;
|
|
|
+ #charset koi8-r;
|
|
|
|
|
|
- # ssl_ciphers HIGH:!aNULL:!MD5;
|
|
|
- # ssl_prefer_server_ciphers on;
|
|
|
+ #access_log logs/host.access.log main;
|
|
|
|
|
|
- # location / {
|
|
|
- # root html;
|
|
|
- # index index.html index.htm;
|
|
|
- # }
|
|
|
- #}
|
|
|
+ # 指向构建后的静态文件目录(使用相对路径)
|
|
|
+ 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;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
}
|