forked from ietf-tools/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx-proxy.conf
More file actions
34 lines (27 loc) · 713 Bytes
/
nginx-proxy.conf
File metadata and controls
34 lines (27 loc) · 713 Bytes
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
server {
listen 8000 default_server;
listen [::]:8000 default_server;
proxy_read_timeout 1d;
proxy_send_timeout 1d;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name _;
location /_static/ {
proxy_pass http://static/;
}
location /pgadmin/ {
proxy_set_header X-Script-Name /pgadmin;
proxy_set_header Host $host;
proxy_pass http://pgadmin;
proxy_redirect off;
}
location / {
error_page 502 /502.html;
proxy_pass http://localhost:8001/;
proxy_set_header Host localhost:8000;
}
location /502.html {
root /var/www/html;
internal;
}
}