2024-02-26 14:26:05 -07:00
|
|
|
[Unit]
|
|
|
|
Description=Sync Pi-hole local DNS to OPNsense Unbound
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=pihole
|
|
|
|
Group=pihole
|
2024-02-26 14:43:04 -07:00
|
|
|
EnvironmentFile=/etc/secrets/pihole-opnsense-sync
|
|
|
|
ExecStart=/opt/pihole-opnsense-sync/venv/bin/python /opt/pihole-opnsense-sync/syncer.py --opnsense https://192.168.1.1 --api-key ${OPNSENSE_API_KEY} --api-secret ${OPNSENSE_API_SECRET}
|
2024-02-26 14:26:05 -07:00
|
|
|
SyslogIdentifier=pihole-opnsense-sync
|
|
|
|
Restart=always
|
|
|
|
|
|
|
|
[Install]
|
2024-02-26 14:43:04 -07:00
|
|
|
WantedBy=multi-user.target
|