forked from jvetvicka/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
25 lines (20 loc) · 1.08 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import os
import dotenv
dotenv.load_dotenv()
class Config:
DEBUG = os.getenv('DEBUG', "false").lower() == "true"
APP_HOST = os.getenv('APP_HOST', 'http://localhost:5000')
API_SECRET = os.getenv('API_SECRET')
SQLALCHEMY_DATABASE_URI = os.getenv('DATABASE_URL', 'sqlite:///mydatabase.db').replace("postgres://",
"postgresql://")
SQLALCHEMY_TRACK_MODIFICATIONS = False
BLUESKY_ENABLED = os.getenv('BLUESKY_ENABLED', "false").lower() == "true"
BLUESKY_HANDLE = os.getenv('BLUESKY_HANDLE')
BLUESKY_APP_PASSWORD = os.getenv('BLUESKY_APP_PASSWORD')
SEARCH_POSTS_PER_PAGE = int(os.getenv('SEARCH_POSTS_PER_PAGE', 10))
THREADS_ENABLED = os.getenv('THREADS_ENABLED', "false").lower() == "true"
THREADS_USER_ID = os.getenv('THREADS_USER_ID')
THREADS_API_KEY = os.getenv('THREADS_API_KEY')
MASTODON_ENABLED = os.getenv('MASTODON_ENABLED', "false").lower() == "true"
MASTODON_URL = os.getenv("MASTODON_URL")
MASTODON_ACCESS_TOKEN = os.getenv("MASTODON_ACCESS_TOKEN")