diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-09-13 22:14:29 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-09-13 22:20:16 +0200 |
| commit | c10b52fb07dd4c92e827b64bf3ac673c69d9d14f (patch) | |
| tree | 057f20be613df0d8678e0d17a17f9439130d1f1e /roles/pihole/templates | |
| parent | f15f59c6f49f48c7e24fabfc003ef9dcfe612e3a (diff) | |
Add pihole port configurations and integration with nginx
Diffstat (limited to 'roles/pihole/templates')
| -rw-r--r-- | roles/pihole/templates/pihole.toml.j2 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/pihole/templates/pihole.toml.j2 b/roles/pihole/templates/pihole.toml.j2 index 23c02b7c..13f7ba1f 100644 --- a/roles/pihole/templates/pihole.toml.j2 +++ b/roles/pihole/templates/pihole.toml.j2 @@ -61,8 +61,18 @@ hosts = {{ pihole_dhcp_hosts | to_nice_json }} domain = {{ pihole_domain }} {% endif %} +{% if (pihole_port is defined) and (pihole_port != '') %} +port = "{{ pihole_port }}" +[webserver.tls] +cert = "" +{% else %} +port = "80,443s" [webserver.tls] cert = "/etc/pihole/tls.pem" +{% endif %} + +[webserver.paths] +webhome = "/admin/" [webserver.api] pwhash = "{{ pihole_password }}" # valid double hashed string |
