configurations/Nginx/Server Blocks/dns.ins.conf

36 lines
846 B
Plaintext
Raw Normal View History

2021-05-01 15:13:49 -04:00
server {
listen 10.8.0.1:443 ssl http2;
server_name dns.ins;
2021-05-21 15:14:07 -04:00
ssl_certificate /etc/nginx/ssl/dns-ins.chain.crt;
ssl_certificate_key /etc/nginx/ssl/dns-ins.key.pem;
2021-05-01 15:13:49 -04:00
index index.html index.htm index.php;
root /opt/powerdns-admin;
2022-02-15 00:26:44 -05:00
2021-05-01 15:13:49 -04:00
access_log /var/log/nginx/powerdns-admin.local.access.log combined;
error_log /var/log/nginx/powerdns-admin.local.error.log;
location ~ ^/static/ {
include /etc/nginx/mime.types;
root /opt/powerdns-admin/powerdnsadmin;
location ~* \.(jpg|jpeg|png|gif)$ {
expires 365d;
}
location ~* ^.+.(css|js)$ {
expires 7d;
}
}
location / {
proxy_pass http://unix:/run/powerdns-admin/socket;
proxy_read_timeout 120;
proxy_connect_timeout 120;
proxy_redirect off;
}
}