Skip to content

Commit 70275a4

Browse files
committed
remove redundant proxy_pass rules
1 parent c1e1305 commit 70275a4

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

api/oracle-cloud/nginx.conf

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,8 @@ http {
66
server {
77
client_max_body_size 10M;
88
listen 80;
9-
# redirect traffic from lh-stage.dzcode.io, lh_stage.dzcode.io, lh.dzcode.io to lhserver:9001
10-
# and from api-stage.dzcode.io, api_stage.dzcode.io, api.dzcode.io to api:7070
9+
1110
location / {
12-
if ($host ~* ^lh-stage.dzcode.io$) {
13-
proxy_pass http://lhserver:9001;
14-
}
15-
if ($host ~* ^lh_stage.dzcode.io$) {
16-
proxy_pass http://lhserver:9001;
17-
}
18-
if ($host ~* ^lh.dzcode.io$) {
19-
proxy_pass http://lhserver:9001;
20-
}
2111
if ($host ~* ^api-stage.dzcode.io$) {
2212
proxy_pass http://api:7070;
2313
}

0 commit comments

Comments
 (0)