-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
48 lines (39 loc) · 1.25 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
events {}
http {
server {
listen 80;
server_name ortholog-seeker.nbiswebapp.bioshu.se;
location ^~ /.well-known/acme-challenge/ {
allow all;
default_type "text/plain";
root /var/www/letsencrypt;
}
location / {
auth_basic "Restricted Access";
auth_basic_user_file /etc/nginx/.htpasswd-orthology-seeker;
proxy_pass http://shiny-ortholog-seeker:3838/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 600s;
}
}
server {
listen 80;
server_name app1.nbiswebapp.bioshu.se;
location ^~ /.well-known/acme-challenge/ {
allow all;
default_type "text/plain";
root /var/www/letsencrypt;
}
location / {
auth_basic "Restricted Access";
auth_basic_user_file /etc/nginx/.htpasswd-app1;
proxy_pass http://shiny-app1:3838/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 600s;
}
}
}