From c370ee55d826012555e89b70fc6f600446660c5c Mon Sep 17 00:00:00 2001 From: Manuel Lera-Ramirez Date: Thu, 6 Feb 2025 20:04:14 +0000 Subject: [PATCH] bugfix: nginx: remove opencloning prefix in proxy (#49) --- src/nginx/opencloning.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nginx/opencloning.conf b/src/nginx/opencloning.conf index 01472de..f27ac54 100644 --- a/src/nginx/opencloning.conf +++ b/src/nginx/opencloning.conf @@ -1,4 +1,7 @@ location ^~ /opencloning { + # Remove the opencloning prefix from the URL before proxying + # Handle both trailing and non-trailing slash cases + rewrite ^/opencloning/?(.*) /$1 break; # this URL is set by entrypoint script proxy_pass %OPENCLONING_URL%; }