From 7411bd5755fa6eb9868dbdc6466f6a98692988e6 Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Tue, 3 Sep 2024 10:48:42 +0200 Subject: [PATCH] [FIX] runbot: allow - in database name The underscore was previously used in database name, but this is not a valid character for certificates (still need some investigation about the limitations) If it worked to access it it was causing issues for IOT andother. _ is forbidden on saas actually. The design_theme database was changed to design-theme, but this is not accessible through the nginx condig. This should solve the issue. --- runbot/templates/nginx.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runbot/templates/nginx.xml b/runbot/templates/nginx.xml index e9f2144f..1512973e 100644 --- a/runbot/templates/nginx.xml +++ b/runbot/templates/nginx.xml @@ -74,7 +74,7 @@ server { server { listen 8080; - server_name ~^(-[a-z0-9_]+)?-(-[a-z0-9_]+)\.$; + server_name ~^(-[a-z0-9_-]+)?-(-[a-z0-9_]+)\.$; location / { @@ -84,7 +84,7 @@ server { server { listen 8080; - server_name ~^(-[a-z0-9_]+)?\.$; + server_name ~^(-[a-z0-9_-]+)?\.$; location / { proxy_pass http://127.0.0.1:; } location /longpolling { proxy_pass http://127.0.0.1:; }