generated from solgenomics/breedbase_site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
breedbase_nginx.conf
47 lines (33 loc) · 1021 Bytes
/
breedbase_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
#
server {
listen 80;
root /var/www/html;
server_name sample.breedbase.org;
client_max_body_size 1G;
location ~/brapi/ {
auth_basic "off";
proxy_read_timeout 100m;
proxy_pass http://127.0.0.1:8080;
}
location ~/user/login {
auth_basic "off";
proxy_pass http://127.0.0.1:8080;
}
location ~/.well-known/openid-configuration {
auth_basic "off";
proxy_pass http://127.0.0.1:8080;
}
location ~/brapi/authorize {
auth_basic "off";
proxy_pass http://127.0.0.1:8080;
}
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_read_timeout 100m;
auth_basic "Restricted - Authorized Users Only";
auth_basic_user_file /etc/nginx/.htpasswd;
}
}