12 Commits a20f6add5b ... d88f7913bc

Author SHA1 Message Date
  anderx d88f7913bc Merge branch 'dev' 11 months ago
  anderx 8418855425 生产修改测试 11 months ago
  anderx 221551e474 生产修改测试 11 months ago
  anderx bd108c02fb Merge remote-tracking branch 'origin/master' 11 months ago
  anderx 5e44ccd7f3 Merge remote-tracking branch 'origin/master' 11 months ago
  Kevin 71b35431d5 更新 default.conf 11 months ago
  anderx dc25b9653e 生产修改测试 11 months ago
  Kevin 00150d3e1c 更新 default.conf 11 months ago
  anderx 09cb6a8301 nginx添加 11 months ago
  anderx 56ea090062 Merge remote-tracking branch 'origin/master' 11 months ago
  anderx 7864753ee6 nginx添加 11 months ago
  hunankede 66fa33e6f1 新建文件 Dockerfile 11 months ago
1 changed files with 3 additions and 2 deletions
  1. 3 2
      nginx/conf.d/default.conf

+ 3 - 2
nginx/conf.d/default.conf

@@ -2,18 +2,19 @@ server {
         listen       8080;
         listen       8080;
         server_name  _;
         server_name  _;
         charset utf-8;
         charset utf-8;
+        
         location / {
         location / {
             root   /app;
             root   /app;
             try_files $uri $uri/ /index.html;
             try_files $uri $uri/ /index.html;
             index  index.html index.htm;
             index  index.html index.htm;
         }
         }
 
 
-        location /gw/ {
+        location /gw {
             proxy_set_header Host $http_host;
             proxy_set_header Host $http_host;
             proxy_set_header X-Real-IP $remote_addr;
             proxy_set_header X-Real-IP $remote_addr;
             proxy_set_header REMOTE-HOST $remote_addr;
             proxy_set_header REMOTE-HOST $remote_addr;
             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
-            proxy_pass http://127.0.0.1:8880;
+            proxy_pass http://api-gateway:8080;
         }
         }
 
 
         error_page   500 502 503 504  /50x.html;
         error_page   500 502 503 504  /50x.html;