mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[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: <build_dest>.runbotX.odoo.com <build_dest>-<db_name_extension>.runbotX.odoo.com Where <db_name_extension> is usually "all" or "base".
This commit is contained in:
parent
e815571d14
commit
b98b8dedd9
@ -47,7 +47,7 @@ server {
|
||||
<t t-foreach="builds" t-as="build">
|
||||
server {
|
||||
listen 8080;
|
||||
server_name ~^<t t-raw="re_escape(build.dest)"/>[-.].*$;
|
||||
server_name ~^<t t-raw="re_escape(build.dest)"/>(-[a-z0-9]+)?\.<t t-raw="re_escape(fqdn)"/>$;
|
||||
location / { proxy_pass http://127.0.0.1:<t t-esc="build.port"/>; }
|
||||
location /longpolling { proxy_pass http://127.0.0.1:<t t-esc="build.port + 1"/>; }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user