This project aims to integrate Traefik with UniFi, allowing for routes populated in Traefik to be updated in the static DNS of Unifi.
- Clone the repository:
git clone https://github.com/ThomasLomas/traefik-to-unifi.git
- Install the required dependencies:
pip install -r requirements.txt
- Set up the necessary environment variables:
UNIFI_URL
: The URL of the UniFi controllerUNIFI_USERNAME
: The username for accessing the UniFi controllerUNIFI_PASSWORD
: The password for accessing the UniFi controllerTRAEFIK_API_URL
: The URL of the Traefik reverse proxy APITRAEFIK_IP
: The IP of the Traefik reverse proxy API
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.