expand readme

This commit is contained in:
Cyberes 2024-02-28 14:29:14 -07:00
parent 2839416831
commit 1789f11c3f
1 changed files with 5 additions and 4 deletions

View File

@ -17,18 +17,19 @@ able to resolve your custom domains.
OPNSENSE_API_KEY='...'
OPNSENSE_API_SECRET='...'
```
3. Set the permissions on this file:
3. Give your user the `Services: Unbound DNS: Edit Host and Domain Override` permision.
4. Set the permissions on this file:
```shell
sudo chown root:root /etc/secrets/pihole-opnsense-sync
sudo chmod 600 /etc/secrets/pihole-opnsense-sync
```
4. Copy the systemd service file:
5. Copy the systemd service file:
```shell
sudo cp pihole-opnsense-sync.service /etc/systemd/system/pihole-opnsense-sync.service
```
The service is configured to run as the `pihole:pihole` user.
5. Edit the service file. You might need to modify `--opnsense` and add `--insecure`.
6. Enable and start the service:
6. Edit the service file. You might need to modify `--opnsense` and add `--insecure`.
7Enable and start the service:
```shell
sudo systemctl enable --now pihole-opnsense-sync
sleep 2