generated from dellevin/template
1.登录验证
2.自动打开默认浏览器
This commit is contained in:
@@ -3,10 +3,17 @@
|
||||
全局配置集中管理
|
||||
"""
|
||||
import os
|
||||
|
||||
# 基础目录
|
||||
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
# ==================== 是否自动打开浏览器 ====================
|
||||
AUTO_OPEN_BROWSER = False
|
||||
# AUTO_OPEN_BROWSER = True
|
||||
# ==================== 登录设置 ====================
|
||||
LOGIN_ENABLED = False
|
||||
# LOGIN_ENABLED = True
|
||||
LOGIN_USERNAME = 'admin'
|
||||
LOGIN_PASSWORD = '123456'
|
||||
SECRET_KEY = 'LQkCU9XfKjxOSfIFZP7kDhwS57o2bvI4qVwZWMet4l8X3RNKnl12bgxvAy1BaByV'
|
||||
# ==================== down-video 视频下载 ====================
|
||||
TWITTER_COOKIE = os.path.join(BASE_DIR, "config", "dv_cookies", "x.com_cookies.txt")
|
||||
BILIBILI_COOKIE = os.path.join(BASE_DIR, "config", "dv_cookies", "bilibili.com_cookies.txt")
|
||||
@@ -21,3 +28,4 @@ JIEBA_DICT_FILE = os.path.join(BASE_DIR, 'config', 'fen_ci', 'jieba.txt')
|
||||
TOKEN_FILE_PATH = os.path.join(BASE_DIR, 'config', 'fen_ci', 'usertoken.json')
|
||||
# ==================== 服务端口 ====================
|
||||
PORT = 5000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user