Skip to content

Commit 6fb117e

Browse files
Marchosiaxebrahimmfadae
authored andcommitted
Add admin path
1 parent 69f05f2 commit 6fb117e

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

nginx.conf

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ http {
4141
server websocket:8080;
4242
}
4343

44+
upstream docker-admin {
45+
server admin:8080;
46+
}
47+
4448
upstream docker-web-app {
4549
server app:80;
4650
}
@@ -96,11 +100,6 @@ http {
96100
return 204;
97101
}
98102

99-
location /auth/ext {
100-
proxy_pass http://docker-auth;
101-
rewrite ^/auth/(.*)$ /$1 break;
102-
}
103-
104103
location /auth {
105104
resolver 127.0.0.11;
106105
set $backend http://docker-auth;
@@ -159,6 +158,13 @@ http {
159158
rewrite ^/ipg/(.*)$ /$1 break;
160159
}
161160

161+
location /admin {
162+
resolver 127.0.0.11;
163+
set $backend http://docker-admin;
164+
proxy_pass $backend;
165+
rewrite ^/admin/(.*)$ /$1 break;
166+
}
167+
162168
location /api {
163169
resolver 127.0.0.11;
164170
set $backend http://docker-api;

0 commit comments

Comments
 (0)