Skip to content

Commit

Permalink
OZ-457: Fix proxy_pass SENAITE rule for Nginx. (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruhanga authored Jan 11, 2024
1 parent 766b229 commit b728f33
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 b728f33

Please sign in to comment.