Skip to content

Commit

Permalink
OZ-457: Fix SENAITE proxy rule.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruhanga authored Jan 11, 2024
1 parent 8858bfe commit e0dcb17
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions proxy/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ server {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
rewrite ^(.*)$ /VirtualHostBase/https/$host/senaite/VirtualHostRoot/$1 break;
set $senaite senaite:8080;
proxy_pass http://$senaite;
proxy_pass http://senaite:8080;
}
}

Expand All @@ -170,7 +169,5 @@ server {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
rewrite ^(.*)$ /VirtualHostBase/http/$host/senaite/VirtualHostRoot/$1 break;
set $senaite senaite:8080;
proxy_pass http://$senaite;
proxy_pass http://senaite:8080;
}
}

0 comments on commit e0dcb17

Please sign in to comment.