Skip to content

Commit

Permalink
add taibol nginx redirect conf
Browse files Browse the repository at this point in the history
  • Loading branch information
moogoo78 committed Jun 26, 2024
1 parent 8a57300 commit c4deb73
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docker/nginx/naturedb.conf
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,15 @@ server {

client_body_buffer_size 16k;

location /record/ {
rewrite ^/record/barcode_animal/search/?q=(.*)$ /data?kingdom=Animalia&collection=barcode&q=$1 permanent;
rewrite ^/record/barcode_fungi/search/?q=(.*)$ /data?kingdom=Fungi&collection=barcode&q=$1 permanent;
rewrite ^/record/sample_animal/search/?q=(.*)$ /data?kingdom=Animalia&collection=material_sample&q=$1 permanent;
rewrite ^/record/sample_fungi/search/?q=(.*)$ /data?kingdom=Fungi&collection=material_sample&q=$1 permanent;
rewrite ^/record/sample/taxon/$ /taxa?collection=material_sample permanent;
rewrite ^/record/barcode/taxon/$ /taxa?collection=barcode permanent;
}

location / {
proxy_pass http://web_instance;
# proxy_redirect off;
Expand All @@ -236,6 +245,6 @@ server {
proxy_connect_timeout 60;
proxy_read_timeout 60;


rewrite ^/record/sample_animal/search/q?=(.*)$ /data?kingdom=Animalia&collection=material_sample&q=$1 last;
}
}

0 comments on commit c4deb73

Please sign in to comment.