-
Notifications
You must be signed in to change notification settings - Fork 1
/
nginx-config-template.conf
37 lines (34 loc) · 1.12 KB
/
nginx-config-template.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
# Replace YOUR.SERVER.DOMAIN below with the (sub)domain of your server.
# Then place the lines in a file (e.g. nanopub.conf) in the Nginx configuration
# directory (probably /etc/nginx/sites-enabled/) and restart Nginx (e.g.
# "service nginx restart").
server {
listen 80;
server_name server.np.YOUR.SERVER.DOMAIN;
location / {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:7880/;
}
}
server {
listen 80;
server_name grlc.np.YOUR.SERVER.DOMAIN;
location / {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:7881/;
}
}
server {
listen 80;
server_name ldf.np.YOUR.SERVER.DOMAIN;
location / {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:7882/;
}
}