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