Commit 987293fe authored by marc duez's avatar marc duez

nginx config

use redirect flag
parent 126f754f
...@@ -31,23 +31,31 @@ server { ...@@ -31,23 +31,31 @@ server {
client_max_body_size 20G; client_max_body_size 20G;
### ###
} }
rewrite ^/browser/([0-9]+)-([0-9]+)(\/?) /?set=$1&conf=$2 break; location / {
rewrite ^/([0-9]+)-([0-9]+)(\/?) /?set=$1&conf=$2 break; root /usr/share/vidjil/browser;
rewrite ^/([0-9]+)-([0-9]+)/(css|js|image|test)/(.*) /$3/$4 redirect;
location /browser { rewrite ^/([0-9]+)-([0-9]+)/ /?set=$1&config=$2 redirect;
root /usr/share/vidjil; rewrite ^/([0-9]+)-([0-9]+) /?set=$1&config=$2 redirect;
expires 1h; expires 1h;
add_header Cache-Control must-revalidate;
error_page 405 = $uri; error_page 405 = $uri;
} }
location / { location /browser {
root /usr/share/vidjil/browser; root /usr/share/vidjil;
rewrite ^/browser/([0-9]+)-([0-9]+)/(css|js|image|test)/(.*) /browser/$3/$4 redirect;
rewrite ^/browser/([0-9]+)-([0-9]+)/ /browser/?set=$1&config=$2 redirect;
rewrite ^/browser/([0-9]+)-([0-9]+) /browser/?set=$1&config=$2 redirect;
expires 1h; expires 1h;
add_header Cache-Control must-revalidate;
error_page 405 = $uri; error_page 405 = $uri;
} }
location /germline { location /germline {
root /usr/share/vidjil/; root /usr/share/vidjil/;
......
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