-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.conf.template
38 lines (37 loc) · 1.13 KB
/
default.conf.template
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
server {
server_name ${DOMAIN_TILESERVER_GL};
listen 80;
location / {
# https://maptiler-tileserver.readthedocs.io/en/latest/deployment.html#nginx-reverse-proxy
# This include directive sets up required headers for proxy and proxy cache.
# As well it includes the required ``X-Forwarded-*`` headers for tileserver to properly generate tiles.
# include proxy_params;
proxy_set_header Host $http_host;
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-Proto https;
proxy_pass http://${IP_TILESERVER_GL}:7070;
}
}
server {
server_name ${DOMAIN_OPENTRIPPLANNER};
listen 80;
location / {
proxy_pass http://${IP_OPENTRIPPLANNER}:8080;
}
}
server {
server_name ${DOMAIN_API};
listen 80;
location / {
proxy_pass http://${IP_API}:4000;
}
}
server {
server_name ${DOMAIN_DIGITRANSIT_UI};
listen 80;
location / {
proxy_pass http://${IP_DIGITRANSIT_UI}:9090;
}
}