-
Notifications
You must be signed in to change notification settings - Fork 1
/
nginx.conf
60 lines (47 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
49
50
51
52
53
54
55
56
57
58
59
60
http {
server {
listen 80;
listen [::]:80;
listen 443 ssl;
listen [::]:443 ssl;
ssl_certificate /opt/downloads.pem;
ssl_certificate_key /opt/downloads-key.pem;
server_name downloads.languagetransfer.org;
location /.well-known/acme-challenge {
root /opt/certbot-challenge;
}
location / {
rewrite ^.*(/[^/]*)$ https://language-transfer.us-east-1.linodeobjects.com$1 permanent;
}
}
server {
listen 80;
listen [::]:80;
listen 443 ssl;
listen [::]:443 ssl;
ssl_certificate /opt/metrics.pem;
ssl_certificate_key /opt/metrics-key.pem;
server_name metrics.languagetransfer.org;
location /.well-known/acme-challenge {
root /opt/certbot-challenge;
}
location = /log {
proxy_pass http://127.0.0.1:6774;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
}
location /dashboard {
root /opt/query-data;
}
location /metabase/ {
proxy_pass http://localhost:3000/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
}
}
}
events {}