Parcourir la source

新增nginx配置

abiao il y a 5 ans
Parent
commit
5c1f8a57f7
1 fichiers modifiés avec 5 ajouts et 38 suppressions
  1. 5 38
      go/gopath/src/fohow-statement-api/nginx/ngx_test_config

+ 5 - 38
go/gopath/src/fohow-statement-api/nginx/ngx_test_config

@@ -6,15 +6,13 @@
 
 server {
     listen       80;
-    server_name  testapi.d5ct.com  testapi.d5c360.com mptapi.d5c360.com;
+    server_name  statementapi.hiwavo.com;
     
     charset utf-8;
 
-    access_log  /opt/apps/api.d5ct.com/go/gopath/src/api.com/logs/ngx_access.log  main;
-    error_log   /opt/apps/api.d5ct.com/go/gopath/src/api.com/logs/ngx_error.log;
-    location /.well-known/pki-validation/ {
-      alias /opt/apps/api.d5ct.com/go/gopath/src/api.com/static/mptapi/;
-    }
+    access_log  /home/rails/fohow/statement_api/go/gopath/src/fohow-statement-api/logs/ngx_access.log  main;
+    error_log   /home/rails/fohow/statement_api/go/gopath/src/fohow-statement-api/logs/ngx_error.log;
+
     location / {
         proxy_next_upstream off;
         proxy_set_header    X-Real-IP           $remote_addr;
@@ -22,42 +20,11 @@ server {
         proxy_set_header    Host                $host;
         proxy_http_version  1.1;
         proxy_set_header    Connection  "";
-        proxy_pass          http://127.0.0.1:28889;
+        proxy_pass          http://127.0.0.1:25568;
     }
 
-    location =/3mft7ivXXx.txt { 
-      root /opt/apps/m.d5ct.com/static/;
-      expires  30d;
-    }
 
     #location /ngx {
     #    stub_status on;
     #}
 }
-
-# HTTPS server
-server {
-    listen       443 ssl;
-    server_name  mptapi.d5c360.com;
-    charset utf-8;
-    #ssl on;
-    ssl_certificate      /opt/apps/api.d5ct.com/go/gopath/src/api.com/static/mptapi/3225071_mptapi.d5c360.com.pem;
-    ssl_certificate_key  /opt/apps/api.d5ct.com/go/gopath/src/api.com/static/mptapi/3225071_mptapi.d5c360.com.key;
-
-#    ssl_session_cache    shared:SSL:1m;
-    ssl_session_timeout  5m;
-
-    ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
-    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
-    ssl_prefer_server_ciphers  on;
-
-    location / {
-        #proxy_next_upstream off;
-        #proxy_set_header    X-Real-IP           $remote_addr;
-        #proxy_set_header    X-Forwarded-For     $proxy_add_x_forwarded_for;
-        #proxy_set_header    Host                $host;
-        #proxy_http_version  1.1;
-        #proxy_set_header    Connection  "";
-        proxy_pass          http://mptapi.d5c360.com;
-    }
-}