Skip to content

Instantly share code, notes, and snippets.


Abhyudaya Sharma AbhyudayaSharma

View GitHub Profile
AbhyudayaSharma / block.list
Last active Feb 20, 2021
Pi-hole block list
View block.list
AbhyudayaSharma /
Last active Jul 25, 2020
HTTPS for Pi-hole using Nginx reverse proxy

This Nginx Configuration sets up Pi-hole behind HTTPS using an Nginx reverse proxy for secure credential transmission when accessing the UI.

Using the NXDOMAIN blocking mode makes sure that Pi-hole is not serving empty HTML pages for every ad.

Since I use ufw on my Raspberry Pi, the following rules are needed for the setup to work (SSH is optional):

sudo ufw status
Status: active