Commit df7c219f authored by Pietro Albini's avatar Pietro Albini

Tweak the nginx configuration

parent 990d09e6
...@@ -18,6 +18,12 @@ server { ...@@ -18,6 +18,12 @@ server {
set $branch $1; set $branch $1;
set $branch_uri $2; set $branch_uri $2;
# Avoid using the cache for logged in users
error_page 418 = @branch;
if ($cookie_session) {
return 418;
}
alias $managetests_root/branches/$branch/data/cache; alias $managetests_root/branches/$branch/data/cache;
try_files $branch_uri.html $branch_uri/index.html $branch_uri @branch; try_files $branch_uri.html $branch_uri/index.html $branch_uri @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