-
Notifications
You must be signed in to change notification settings - Fork 1
/
nginx.conf
49 lines (39 loc) · 1.37 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
49
server {
listen 80;
return 301 https://$host$request_uri;
}
server {
listen 443;
server_name cbioportal;
ssl_certificate /etc/nginx/cert.crt;
ssl_certificate_key /etc/nginx/cert.key;
ssl on;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
ssl_prefer_server_ciphers on;
access_log /var/log/nginx/cbioportal.access.log;
client_max_body_size 0;
location / {
proxy_max_temp_file_size 0;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header Connection keep-alive;
proxy_set_header Upgrade $http_upgrade;
proxy_cache_bypass $http_upgrade;
proxy_set_header Origin "";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
proxy_pass http://cbioportal:8080;
proxy_buffering off;
proxy_redirect off;
proxy_connect_timeout "10s";
proxy_send_timeout "20m";
proxy_read_timeout "20m";
}
location /dashboard {
index index.html;
}
}