Add dns-stack profile and stable IP prompt
This commit is contained in:
28
profiles/dns-stack/profile.json
Normal file
28
profiles/dns-stack/profile.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"id": "dns-stack",
|
||||
"name": "DNS Stack",
|
||||
"requires_stable_ip": true,
|
||||
"firewall_ports": [53, 8089, 8489],
|
||||
"firewall_enable": true,
|
||||
"services": [
|
||||
{ "name": "Pi-hole", "port": 8489, "scheme": "https", "path": "/admin/" }
|
||||
],
|
||||
"actions": [
|
||||
{
|
||||
"type": "tls_bundle",
|
||||
"source_cert": "/etc/pikit/certs/pikit.local.crt",
|
||||
"source_key": "/etc/pikit/certs/pikit.local.key",
|
||||
"dest": "/etc/pihole/tls.pem",
|
||||
"owner": "root:pihole",
|
||||
"mode": "640",
|
||||
"restart": "pihole-FTL"
|
||||
},
|
||||
{
|
||||
"type": "replace_text",
|
||||
"file": "/etc/pihole/pihole.toml",
|
||||
"match": "domain = \"pi.hole\"",
|
||||
"replace": "domain = \"pikit.local\"",
|
||||
"restart": "pihole-FTL"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user