animeic 1 ano atrás
pai
commit
fe521b831b
3 arquivos alterados com 12 adições e 12 exclusões
  1. 3 3
      config-service.yaml
  2. 7 7
      docker-compose.yaml
  3. 2 2
      nginx/conf.d/default.conf

+ 3 - 3
config-service.yaml

@@ -9,9 +9,9 @@ configer:
     value: mongodb://root:infishpayvvv@pay-mongo:27017/pay?authSource=admin
     # devValue: mongodb://root:infishpayvvv@124.71.139.24:37917/pay?authSource=admin
     devValue: mongodb://root:infishpayvvv@127.0.0.1:37917/pay?authSource=admin
-  -
-    name: redis
-    value: pay-redis:6379#0#default#packcomm
+  # -
+  #   name: redis
+  #   value: pay-redis:6379#0#default#packcomm
 
 
 startLocalNats: true

+ 7 - 7
docker-compose.yaml

@@ -29,17 +29,17 @@ services:
 
     depends_on:
       - pay-mongo
-      - pay-redis    
+      # - pay-redis    
     ports:
       - 14921:4222
 
   # redis缓存
-  pay-redis:
-    image: "redis:alpine"
-    restart: always
-    command:
-      --requirepass "packcomm" #这一行是设置密码
-    privileged: true
+  # pay-redis:
+  #   image: "redis:alpine"
+  #   restart: always
+  #   command:
+  #     --requirepass "packcomm" #这一行是设置密码
+  #   privileged: true
 
   # 数据库
   pay-mongo:

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

@@ -14,12 +14,12 @@ server {
     }
 
     # 支付接口
-    location /pay/ {
+    location / {
         proxy_set_header Host $host:$server_port; #远程主机 IP:PORT
         proxy_set_header X-Real-PORT $remote_port; #远程端口
         proxy_set_header X-Real-IP $remote_addr; #远程地址
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; #远程代理地址
-        proxy_pass  http://pay:8888/pay/;
+        proxy_pass  http://pay:8888/;
     }   
 
 }