Skip to content

Commit

Permalink
remove redundant proxy_pass rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ZibanPirate committed Oct 4, 2024
1 parent c1e1305 commit 70275a4
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions api/oracle-cloud/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,8 @@ http {
server {
client_max_body_size 10M;
listen 80;
# redirect traffic from lh-stage.dzcode.io, lh_stage.dzcode.io, lh.dzcode.io to lhserver:9001
# and from api-stage.dzcode.io, api_stage.dzcode.io, api.dzcode.io to api:7070

location / {
if ($host ~* ^lh-stage.dzcode.io$) {
proxy_pass http://lhserver:9001;
}
if ($host ~* ^lh_stage.dzcode.io$) {
proxy_pass http://lhserver:9001;
}
if ($host ~* ^lh.dzcode.io$) {
proxy_pass http://lhserver:9001;
}
if ($host ~* ^api-stage.dzcode.io$) {
proxy_pass http://api:7070;
}
Expand Down

0 comments on commit 70275a4

Please sign in to comment.