generated from dellevin/template
feat: complete local version to overwrite remote
This commit is contained in:
23
flask-dev-api/config.py
Normal file
23
flask-dev-api/config.py
Normal file
@@ -0,0 +1,23 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
全局配置集中管理
|
||||
"""
|
||||
import os
|
||||
|
||||
# 基础目录
|
||||
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
# ==================== 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")
|
||||
INSTAGRAM_COOKIE = os.path.join(BASE_DIR, "config", "dv_cookies", "instagram.com_cookies.txt")
|
||||
YOUTUBE_COOKIE = os.path.join(BASE_DIR, "config", "dv_cookies", "youtube.com_cookies.txt")
|
||||
# 默认下载目录
|
||||
DEFAULT_OUTPUT_DIR = r"D:\UserData\Desktop\xiazai"
|
||||
# 默认代理端口
|
||||
PROXY_URL = "socks5://127.0.0.1:10808"
|
||||
# ==================== fen-ci 分词 ====================
|
||||
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