From c1bd76c7df01f4b71c4e09321abab97601c55231 Mon Sep 17 00:00:00 2001 From: Limezy Date: Sat, 26 Mar 2022 14:06:59 +0700 Subject: [PATCH] Test --- conf/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 1e22b95..0e03b64 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,11 +1,11 @@ -location /server/ { +location ~ ^/server(/?)(.*) { # Force usage of https if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; } - proxy_pass http://127.0.0.1:__PORT__/; + proxy_pass http://127.0.0.1/$2:__PORT__/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_cache_bypass $http_upgrade;