From b98b8dedd94b9a63ccfd0e929de653abd2bccbed Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Mon, 30 Jul 2018 12:11:27 +0200 Subject: [PATCH] [IMP] runbot: make nginx server_name more specific Avoids overly generic vhost declaration, and makes config easier to understand. We only want to allow such hosts: .runbotX.odoo.com -.runbotX.odoo.com Where is usually "all" or "base". --- runbot/templates/nginx.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/templates/nginx.xml b/runbot/templates/nginx.xml index f0a7f67b..d4f41f72 100644 --- a/runbot/templates/nginx.xml +++ b/runbot/templates/nginx.xml @@ -47,7 +47,7 @@ server { server { listen 8080; - server_name ~^[-.].*$; + server_name ~^(-[a-z0-9]+)?\.$; location / { proxy_pass http://127.0.0.1:; } location /longpolling { proxy_pass http://127.0.0.1:; } }