Commit e447a532 authored by Pietro Albini's avatar Pietro Albini

Add nginx configuration file

parent 13d911c9
server {
set $managetests_root /path/to/root;
listen 80;
listen [::]:80;
server_name wwwtest.ubuntu-it.org;
location / {
proxy_pass http://localhost:8080;
}
location ~ ^/([a-zA-Z0-9\-\._]+)/(.*) {
set $branch $1;
rewrite ^/([a-zA-Z0-9\-\._]+)/(.*) /$2 break;
proxy_pass http://unix:$managetests_root/socks/branches/$branch.sock;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Script-Name /$branch;
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment