new
This commit is contained in:
@@ -65,6 +65,9 @@ services:
|
||||
- ./vue/html1:/var/www/html
|
||||
networks:
|
||||
- mynetwork
|
||||
-
|
||||
depends_on:
|
||||
- library
|
||||
- gateway
|
||||
|
||||
networks:
|
||||
mynetwork:
|
||||
|
||||
@@ -11,7 +11,7 @@ server {
|
||||
# API转发
|
||||
location /api {
|
||||
rewrite ^/api(.*)$ $1 break;
|
||||
proxy_pass http://127.0.0.1:9100;
|
||||
proxy_pass http://gateway:9100;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
Reference in New Issue
Block a user