Browse Source

no message

Gavin 5 years ago
parent
commit
386638d96f
2 changed files with 36 additions and 1 deletions
  1. 35 0
      k8swebapi-nginx/conf.d/k8swebapi-nginx.conf
  2. 1 1
      watchv2/agollo.json

+ 35 - 0
k8swebapi-nginx/conf.d/k8swebapi-nginx.conf

@@ -33,3 +33,38 @@ server {
         access_log off;
     }
 }
+server {
+    listen 8020;
+
+    #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;
+
+    charset utf-8;
+
+    server_name _;
+
+    location / {
+        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;
+        proxy_pass http://watchv2-svc:8020;
+    }
+    
+    location /favicon.ico {
+        log_not_found off;
+        access_log off;
+    }
+}

+ 1 - 1
watchv2/agollo.json

@@ -1,7 +1,7 @@
 {
   "appId": "xy_watchV2",
   "cluster" : "default",
-  "namespaceNames" : ["xy_watchV2 .yaml"],
+  "namespaceNames" : ["xy_watchV2.yaml"],
   "ip" : "10.68.0.122:8080",
   "oneNameSpaceMode" : true,
   "tagname" : "yaml"