[redirects-web/proxy] Minor fixes to regexes, also missed a proxy_pass
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [redirects-web/proxy] Minor fixes to regexes, also missed a proxy_pass
- Date: Tue, 1 Feb 2022 17:54:37 +0000 (UTC)
commit 534d8100a318c838de72cd6e799f4d13c26a97ce
Author: Andrea Veri <averi redhat com>
Date: Tue Feb 1 18:54:29 2022 +0100
Minor fixes to regexes, also missed a proxy_pass
conf.d/office.cloud.gnome.org.conf | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/conf.d/office.cloud.gnome.org.conf b/conf.d/office.cloud.gnome.org.conf
index 3b05f84..0f88318 100644
--- a/conf.d/office.cloud.gnome.org.conf
+++ b/conf.d/office.cloud.gnome.org.conf
@@ -3,17 +3,18 @@ server {
listen [::]:8080;
server_name office.cloud.gnome.org;
- location /loleaflet {
- proxy_pass https://vpn.palette.gnome.org:9980/loleaflet/;
+ location ^~ /loleaflet {
+ proxy_pass https://vpn.palette.gnome.org:9980;
proxy_set_header Host $http_host;
}
- location /hosting/discovery {
- proxy_pass https://vpn.palette.gnome.org:9980/hosting/discovery;
+ location ^~ /hosting/discovery {
+ proxy_pass https://vpn.palette.gnome.org:9980;
proxy_set_header Host $http_host;
}
- location /lool/adminws {
+ location ~ ^/lool/adminws {
+ proxy_pass https://vpn.palette.gnome.org:9980;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
@@ -21,13 +22,13 @@ server {
proxy_read_timeout 36000s;
}
- location /lool {
- proxy_pass https://vpn.palette.gnome.org:9980/lool;
+ location ~ ^/lool {
+ proxy_pass https://vpn.palette.gnome.org:9980;
proxy_set_header Host $http_host;
}
- location /hosting/capabilities {
- proxy_pass https://vpn.palette.gnome.org:9980/hosting/capabilities;
+ location ^~ /hosting/capabilities {
+ proxy_pass https://vpn.palette.gnome.org:9980;
proxy_set_header Host $http_host;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]