mirror of
https://github.com/michivonah/adguard-ddns-client.git
synced 2025-12-22 22:26:28 +01:00
add .env file for security
This commit is contained in:
parent
8309aba361
commit
bd7ed03e2c
1 changed files with 5 additions and 3 deletions
8
main.py
8
main.py
|
|
@ -1,10 +1,12 @@
|
|||
import os
|
||||
from dotenv import load_dotenv
|
||||
import requests
|
||||
from requests.auth import HTTPBasicAuth
|
||||
|
||||
# AdGuard Home API Informationen
|
||||
API_BASE_URL = ""
|
||||
API_USERNAME = ""
|
||||
API_PASSWORD = ""
|
||||
API_BASE_URL = os.getenv('API_BASE_URL')
|
||||
API_USERNAME = os.getenv('API_USERNAME')
|
||||
API_PASSWORD = os.getenv('API_PASSWORD')
|
||||
|
||||
# IP-Adresse, die zur Whitelist hinzugefügt werden soll
|
||||
IP_TO_WHITELIST = "1.2.3.4"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue