|
@@ -1,74 +1,74 @@
|
|
|
-upstream shareapi-svc {
|
|
|
- server shareapi-svc:6999;
|
|
|
-}
|
|
|
-
|
|
|
-server {
|
|
|
- listen 80;
|
|
|
- listen 443 ssl http2;
|
|
|
-
|
|
|
- #ssl on;
|
|
|
- ssl_certificate ssl/xinyueyouxi.com.pem;
|
|
|
- ssl_certificate_key ssl/xinyueyouxi.com.key;
|
|
|
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
|
|
- ssl_ciphers HIGH:!RC4:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!EXP:+MEDIUM;
|
|
|
- ssl_prefer_server_ciphers on;
|
|
|
- ssl_session_timeout 5m;
|
|
|
-
|
|
|
- add_header Access-Control-Allow-Origin *;
|
|
|
- add_header Access-Control-Allow-Headers X-Requested-With;
|
|
|
- add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
|
|
|
-
|
|
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
- proxy_set_header Remote_addr $remote_addr;
|
|
|
- proxy_set_header X-Real_IP $remote_addr;
|
|
|
- proxy_set_header Host $host;
|
|
|
- proxy_redirect off;
|
|
|
- proxy_http_version 1.1;
|
|
|
-
|
|
|
- charset utf-8;
|
|
|
-
|
|
|
- server_name api.xinyueyouxi.com sapi1.xinyueyouxi.com sapi2.xinyueyouxi.com sapi3.xinyueyouxi.com iapi.xinyueapi.com;
|
|
|
-
|
|
|
- location /share/ {
|
|
|
- proxy_pass http://shareapi-svc;
|
|
|
- }
|
|
|
-
|
|
|
- location /uplog/ {
|
|
|
- proxy_pass http://uplogapi-svc;
|
|
|
- }
|
|
|
-}
|
|
|
-server {
|
|
|
- listen 80;
|
|
|
- listen 443 ssl http2;
|
|
|
-
|
|
|
- #ssl on;
|
|
|
- ssl_certificate ssl/xinyueapi.com.pem;
|
|
|
- ssl_certificate_key ssl/xinyueapi.com.key;
|
|
|
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
|
|
- ssl_ciphers HIGH:!RC4:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!EXP:+MEDIUM;
|
|
|
- ssl_prefer_server_ciphers on;
|
|
|
- ssl_session_timeout 5m;
|
|
|
-
|
|
|
- add_header Access-Control-Allow-Origin *;
|
|
|
- add_header Access-Control-Allow-Headers X-Requested-With;
|
|
|
- add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
|
|
|
-
|
|
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
- proxy_set_header Remote_addr $remote_addr;
|
|
|
- proxy_set_header X-Real_IP $remote_addr;
|
|
|
- proxy_set_header Host $host;
|
|
|
- proxy_redirect off;
|
|
|
- proxy_http_version 1.1;
|
|
|
-
|
|
|
- charset utf-8;
|
|
|
-
|
|
|
- server_name api.xinyueapi.com;
|
|
|
-
|
|
|
- location /share/ {
|
|
|
- proxy_pass http://shareapi-svc;
|
|
|
- }
|
|
|
-
|
|
|
- location /uplog/ {
|
|
|
- proxy_pass http://uplogapi-svc;
|
|
|
- }
|
|
|
+upstream shareapi-svc {
|
|
|
+ server shareapi-svc:6999;
|
|
|
+}
|
|
|
+
|
|
|
+server {
|
|
|
+ listen 80;
|
|
|
+ listen 443 ssl http2;
|
|
|
+
|
|
|
+ #ssl on;
|
|
|
+ ssl_certificate ssl/xinyueyouxi.com.pem;
|
|
|
+ ssl_certificate_key ssl/xinyueyouxi.com.key;
|
|
|
+ ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
|
|
+ ssl_ciphers HIGH:!RC4:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!EXP:+MEDIUM;
|
|
|
+ ssl_prefer_server_ciphers on;
|
|
|
+ ssl_session_timeout 5m;
|
|
|
+
|
|
|
+ add_header Access-Control-Allow-Origin *;
|
|
|
+ add_header Access-Control-Allow-Headers X-Requested-With;
|
|
|
+ add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
|
|
|
+
|
|
|
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
+ proxy_set_header Remote_addr $remote_addr;
|
|
|
+ proxy_set_header X-Real_IP $remote_addr;
|
|
|
+ proxy_set_header Host $host;
|
|
|
+ proxy_redirect off;
|
|
|
+ proxy_http_version 1.1;
|
|
|
+
|
|
|
+ charset utf-8;
|
|
|
+
|
|
|
+ server_name api.xinyueyouxi.com sapi1.xinyueyouxi.com sapi2.xinyueyouxi.com sapi3.xinyueyouxi.com;
|
|
|
+
|
|
|
+ location /share/ {
|
|
|
+ proxy_pass http://shareapi-svc;
|
|
|
+ }
|
|
|
+
|
|
|
+ location /uplog/ {
|
|
|
+ proxy_pass http://uplogapi-svc;
|
|
|
+ }
|
|
|
+}
|
|
|
+server {
|
|
|
+ listen 80;
|
|
|
+ listen 443 ssl http2;
|
|
|
+
|
|
|
+ #ssl on;
|
|
|
+ ssl_certificate ssl/xinyueapi.com.pem;
|
|
|
+ ssl_certificate_key ssl/xinyueapi.com.key;
|
|
|
+ ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
|
|
+ ssl_ciphers HIGH:!RC4:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!EXP:+MEDIUM;
|
|
|
+ ssl_prefer_server_ciphers on;
|
|
|
+ ssl_session_timeout 5m;
|
|
|
+
|
|
|
+ add_header Access-Control-Allow-Origin *;
|
|
|
+ add_header Access-Control-Allow-Headers X-Requested-With;
|
|
|
+ add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
|
|
|
+
|
|
|
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
+ proxy_set_header Remote_addr $remote_addr;
|
|
|
+ proxy_set_header X-Real_IP $remote_addr;
|
|
|
+ proxy_set_header Host $host;
|
|
|
+ proxy_redirect off;
|
|
|
+ proxy_http_version 1.1;
|
|
|
+
|
|
|
+ charset utf-8;
|
|
|
+
|
|
|
+ server_name api.xinyueapi.com;
|
|
|
+
|
|
|
+ location /share/ {
|
|
|
+ proxy_pass http://shareapi-svc;
|
|
|
+ }
|
|
|
+
|
|
|
+ location /uplog/ {
|
|
|
+ proxy_pass http://uplogapi-svc;
|
|
|
+ }
|
|
|
}
|