Skip to content

Commit

Permalink
OZ-457: SENAITE HTTP requests rewritten to use SSL (in Gitpod only) (#68
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Ruhanga authored Jan 11, 2024
1 parent 2d03391 commit 8858bfe
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions proxy/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,20 @@ 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;
set $senaite senaite:8080;
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;
set $senaite senaite:8080;
proxy_pass http://$senaite;
}
}

0 comments on commit 8858bfe

Please sign in to comment.