expand readme
This commit is contained in:
parent
2839416831
commit
1789f11c3f
|
@ -17,18 +17,19 @@ able to resolve your custom domains.
|
||||||
OPNSENSE_API_KEY='...'
|
OPNSENSE_API_KEY='...'
|
||||||
OPNSENSE_API_SECRET='...'
|
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
|
```shell
|
||||||
sudo chown root:root /etc/secrets/pihole-opnsense-sync
|
sudo chown root:root /etc/secrets/pihole-opnsense-sync
|
||||||
sudo chmod 600 /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
|
```shell
|
||||||
sudo cp pihole-opnsense-sync.service /etc/systemd/system/pihole-opnsense-sync.service
|
sudo cp pihole-opnsense-sync.service /etc/systemd/system/pihole-opnsense-sync.service
|
||||||
```
|
```
|
||||||
The service is configured to run as the `pihole:pihole` user.
|
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. Edit the service file. You might need to modify `--opnsense` and add `--insecure`.
|
||||||
6. Enable and start the service:
|
7Enable and start the service:
|
||||||
```shell
|
```shell
|
||||||
sudo systemctl enable --now pihole-opnsense-sync
|
sudo systemctl enable --now pihole-opnsense-sync
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
Loading…
Reference in New Issue