Skip to content

Commit

Permalink
added dotenv
Browse files Browse the repository at this point in the history
  • Loading branch information
chkpwd committed Oct 24, 2024
1 parent 380432a commit f14be7e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .env.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
ADDRESS="0.0.0.0"
LISTEN_PORT="7979"
ANIME_NAME="one-piece"
SONARR_URL="https://sonarr.local"
SONARR_SERIES_ID="187"
SONARR_API_KEY="<your_api_key>"
PLEX_URL="http://127.0.0.1:32400"
PLEX_TOKEN="<your_plex_token>"
CREATE_PLEX_COLLECTION="True"
PLEX_ANIME_LIBRARY="<your_plex_anime_library>"
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ __pycache__/
vendor/

# Environments
.env
.env.priv
.venv
env/
venv/
Expand Down
3 changes: 3 additions & 0 deletions load_env.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from dotenv import load_dotenv

load_dotenv(dotenv_path=".env.priv")
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ lxml
requests
flask
plexapi
python-dotenv

0 comments on commit f14be7e

Please sign in to comment.