From 95b73daa36b23565a8566f71f9b202d3459b685f Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Sun, 25 Jun 2023 09:52:36 -0400 Subject: Initial Commit --- data/pihole-exporter/pihole-exporter.conf | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 data/pihole-exporter/pihole-exporter.conf (limited to 'data/pihole-exporter') diff --git a/data/pihole-exporter/pihole-exporter.conf b/data/pihole-exporter/pihole-exporter.conf new file mode 100644 index 0000000..b42c444 --- /dev/null +++ b/data/pihole-exporter/pihole-exporter.conf @@ -0,0 +1,27 @@ +server { + + listen 443 ssl; + ssl_certificate /etc/letsencrypt/live/chudnick.com/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/chudnick.com/privkey.pem; + ssl_stapling on; + ssl_stapling_verify on; + + # Your server name + server_name piholemetrics.chudnick.com; + + # Security Headers + add_header X-Frame-Options "SAMEORIGIN"; + add_header X-XSS-Protection "1; mode=block"; + add_header X-Content-Type-Options "nosniff"; + + location / { + proxy_pass http://127.0.0.1:9617; + } +} + +server { + listen 80; + listen [::]:80; + server_name piholemetrics.chudnick.com; + return 301 https://$host$request_uri; +} -- cgit v1.2.3