Skip to content

Commit

Permalink
OZ-196: SENAITE HTTP requests rewritten to use SSL (in Gitpod only)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruhanga authored Jan 10, 2024
1 parent d477745 commit 0c72e68
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions proxy/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,18 @@ server {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
rewrite ^(.*)$ /VirtualHostBase/$scheme/$host/senaite/VirtualHostRoot/$1 break;
rewrite ^(.*)$ /VirtualHostBase/https/$host/senaite/VirtualHostRoot/$1 break;
proxy_pass http://senaite;
}
}
}

server {
listen 8081;
location / {
proxy_set_header Host $http_host;
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;
proxy_pass http://senaite;
}
}

0 comments on commit 0c72e68

Please sign in to comment.