-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathnginx.conf
34 lines (33 loc) · 1.07 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
events {
worker_connections 768;
}
http {
server {
listen 80;
listen [::]:80;
listen 443 ssl;
ssl_certificate /tssl/certs/localhost.crt;
ssl_certificate_key /tssl/private/localhost.key;
client_max_body_size 0m;
location / {
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_pass http://timesketch-web:5000/;
proxy_read_timeout 120s;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /legacy/ {
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_pass http://timesketch-web-legacy:5000/;
proxy_read_timeout 120s;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
}