This project aims to integrate Traefik with AdGuard, allowing for routes populated in Traefik to be updated in the static DNS of AdGuard.
- Clone the repository:
git clone https://github.com/Opachl/traefik-to-AdGuard.git - Install the required dependencies:
pip install -r requirements.txt - Set up the necessary environment variables:
UNIFI_URL: The URL of the AdGuard APIIGNORE_SSL_WARNINGS: true/false iggore ssl warnings from AdGuard APIADGUARD_USERNAME: The username for accessing the AdGuard APIADGUARD_PASSWORD: The password for accessing the AdGuard APITRAEFIK_API_URL: The URL of the Traefik reverse proxy APITRAEFIK_IP: The IP of the Traefik reverse proxy APIALLOW_DNS_DELETE: true/false if true it will use the variable DNS_DELETE_DOMAIN to remove all obsolete entrysDNS_DELETE_DOMAIN: eg. *.myDomain.com will be used for ALLOW_DNS_DELETE wildcard is used to specify wich entrys should be cleaned if not provided by traefik.
Install dependencies with poetry install
Either via the Docker container or run poetry run python app.py. Be sure to have the environment variables listed above available.
Contributions are welcome! Please follow the guidelines outlined in CONTRIBUTING.md.
This project is licensed under the MIT License.