feat:重构模块
This commit is contained in:
17
nginx.conf
17
nginx.conf
@@ -8,17 +8,18 @@ server {
|
||||
|
||||
server_name _;
|
||||
|
||||
#location /admin-service/ {
|
||||
#proxy_pass http://admin-service:8080/;
|
||||
#}
|
||||
location /sweet-hut/ {
|
||||
alias /usr/share/nginx/html/;
|
||||
try_files $uri $uri/ /sweet-hut/index.html;
|
||||
}
|
||||
|
||||
location /home-service/ {
|
||||
proxy_pass http://home-service:8081/;
|
||||
location /home-api/ {
|
||||
proxy_pass http://host.docker.internal:8081/;
|
||||
}
|
||||
|
||||
#location /blog-service/ {
|
||||
#proxy_pass http://blog-service:8082/;
|
||||
#}
|
||||
location /blog-api/ {
|
||||
proxy_pass http://host.docker.internal:8082/;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
|
||||
Reference in New Issue
Block a user