Selaa lähdekoodia

update .gitignore

abiao 4 vuotta sitten
vanhempi
commit
892c826c28
1 muutettua tiedostoa jossa 51 lisäystä ja 65 poistoa
  1. 51 65
      go/gopath/src/fohow.com/nginx/ngx_dev_config

+ 51 - 65
go/gopath/src/fohow.com/nginx/ngx_dev_config

@@ -1,23 +1,31 @@
+
+#upstream rungobackend {
+#    server 127.0.0.1:28889;
+#    keepalive 128;
+#}
+
 server {
     listen       80;
-    server_name  ofohowapi.hiwavo.com  fohowapi.hiwavo.com;
+    server_name  tfohowapi.hiwavo.com;
     charset utf-8;
-    access_log  /home/www/fohow/api/go/gopath/src/fohow.com/logs/ngx_access.log  main;
-    error_log   /home/www/fohow/api/go/gopath/src/fohow.com/logs/ngx_error.log;
+
+    access_log  /root/sites/fohow_git/x_api/go/gopath/src/fohow.com/logs/ngx_access.log  main;
+    error_log   /root/sites/fohow_git/x_api/go/gopath/src/fohow.com/logs/ngx_error.log;
 
     location /.well-known/pki-validation/ {
-      alias /home/www/fohow/api/go/gopath/src/fohow.com/static/api/;
+      alias /root/sites/fohow_git/x_api/go/gopath/src/fohow.com/static/tapi/;
     }
 
-    location =/MP_verify_lJe9c6nI4kLGLBt1.txt {
-      root /home/www/fohow/api/go/gopath/src/fohow.com/static/api/;
+    location =/MP_verify_WKpffc3SRB4yjEzI.txt {
+      root /root/sites/fohow_git/x_api/go/gopath/src/fohow.com/static/tapi/;
       #expires  30d;
     }
 
     location =/stcXSY70Qh.txt {
-      root /home/www/fohow/api/go/gopath/src/fohow.com/static/api/;
+      root /root/sites/fohow_git/x_api/go/gopath/src/fohow.com/static/tapi/;
+      #expires  30d;
     }
-    
+
 
     location / {
         proxy_next_upstream off;
@@ -29,63 +37,41 @@ server {
         proxy_pass          http://127.0.0.1:25565;
     }
 
-    # location /ngx {
-    #    stub_status on;
-    #}
+   location /ngx {
+     stub_status on;
+   }
 }
 
+
 # HTTPS server
- server {
-     listen       443 ssl;
-     server_name  ofohowapi.hiwavo.com;
-     charset utf-8;
-     #ssl on;
-     ssl_certificate      /home/www/fohow/api/go/gopath/src/fohow.com/static/api/4061141_ofohowapi.hiwavo.com.pem;
-     ssl_certificate_key  /home/www/fohow/api/go/gopath/src/fohow.com/static/api/4061141_ofohowapi.hiwavo.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://ofohowapi.hiwavo.com;
-     }
- }
-
-
-
- # HTTPS server
- server {
-     listen       443 ssl;
-     server_name  fohowapi.hiwavo.com;
-     charset utf-8;
-     #ssl on;
-     ssl_certificate      /home/www/fohow/api/go/gopath/src/fohow.com/static/api/5539942_fohowapi.hiwavo.com.pem;
-     ssl_certificate_key  /home/www/fohow/api/go/gopath/src/fohow.com/static/api/5539942_fohowapi.hiwavo.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://fohowapi.hiwavo.com;
-     }
- }
+server {
+    listen       443 ssl;
+    server_name  tfohowapi.hiwavo.com;
+    charset utf-8;
+    #ssl on;
+    ssl_certificate      /root/sites/fohow_git/x_api/go/gopath/src/fohow.com/static/tapi/5539910_tfohowapi.hiwavo.com.pem;
+    ssl_certificate_key  /root/sites/fohow_git/x_api/go/gopath/src/fohow.com/static/tapi/5539910_tfohowapi.hiwavo.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://tfohowapi.hiwavo.com:80;
+    }
+}
+
+
+
+
+
+