mirror of
https://github.com/d0zingcat/RSSHub-python.git
synced 2026-05-14 15:09:23 +00:00
init project
This commit is contained in:
32
rsshub/config.py
Normal file
32
rsshub/config.py
Normal file
@@ -0,0 +1,32 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
basedir = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
|
||||
|
||||
|
||||
class BaseConfig:
|
||||
SITE_NAME = 'RSSHub'
|
||||
GITHUB_USERNAME = 'alphardex'
|
||||
EMAIL = '2582347430@qq.com'
|
||||
SECRET_KEY = os.environ.get('SECRET_KEY') or 'f43hrt53et53'
|
||||
DEBUG_TB_INTERCEPT_REDIRECTS = False
|
||||
|
||||
|
||||
class DevelopmentConfig(BaseConfig):
|
||||
pass
|
||||
|
||||
|
||||
class TestingConfig(BaseConfig):
|
||||
TESTING = True
|
||||
|
||||
|
||||
class ProductionConfig(BaseConfig):
|
||||
pass
|
||||
|
||||
|
||||
config = {
|
||||
'development': DevelopmentConfig,
|
||||
'testing': TestingConfig,
|
||||
'production': ProductionConfig
|
||||
}
|
||||
Reference in New Issue
Block a user