-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
48 lines (40 loc) · 1.32 KB
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
server {
listen 80;
listen 443 ssl;
index index.php index.html;
server_name taxon.specifysoftware.org;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
root /var/www/;
ssl_certificate /etc/letsencrypt/live/taxon.specifysoftware.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/taxon.specifysoftware.org/privkey.pem;
rewrite ^/gbif/(.*)$ /taxa_tree_gbif/front_end/$1 break;
rewrite ^/col/(.*)$ /taxa_tree_col/front_end/$1 break;
rewrite ^/itis/(.*)$ /taxa_tree_itis/front_end/$1 break;
rewrite ^/worms/(.*)$ /taxa_tree_worms/front_end/$1 break;
rewrite ^/stats/(.*)$ /taxa_tree_stats/$1 break;
location ~ \.php$ {
client_max_body_size 256M;
try_files $uri = 404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass front_end:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_read_timeout 3600;
proxy_read_timeout 3600;
proxy_connect_timeout 3600;
proxy_send_timeout 3600;
}
location / {
try_files $uri $uri/ = 404;
gzip_static on;
}
}
server {
listen 80;
listen 443 ssl;
server_name www.taxon.specifysoftware.org;
return 301 https://taxon.specifysoftware.org$request_uri;
}