forked from connectitnet/powerdns-for-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpdnsadmin-nginx.conf
More file actions
56 lines (48 loc) · 1.48 KB
/
pdnsadmin-nginx.conf
File metadata and controls
56 lines (48 loc) · 1.48 KB
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
daemon off;
worker_processes 3;
error_log /dev/stderr info;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
tcp_nopush on;
keepalive_timeout 65;
gzip on;
server_tokens off;
client_max_body_size 10M;
server {
listen 8000;
access_log off;
location /static/ {
alias /opt/powerdns-admin/app/static/;
}
location /upload/ {
alias /opt/powerdns-admin/upload/;
}
location / {
proxy_pass http://powerdns-admin:8080;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
add_header P3P 'CP="ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV"';
proxy_connect_timeout 600s;
proxy_read_timeout 600s;
}
}
server {
listen 8001;
access_log off;
location / {
proxy_pass http://pdns-server:8081;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
add_header P3P 'CP="ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV"';
proxy_connect_timeout 600s;
proxy_read_timeout 600s;
}
}
}