-
Notifications
You must be signed in to change notification settings - Fork 8
/
pdnsadmin-nginx.conf
42 lines (35 loc) · 1.02 KB
/
pdnsadmin-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
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;
}
}
}