| | |
| | import os |
| | import sys |
| | from os.path import join |
| |
|
| | |
| | |
| | PROD_PATH = "/home/user/app" |
| | sys.path.append(PROD_PATH) |
| |
|
| | from option_logger import register_logger |
| |
|
| | |
| | browser_headless = True |
| | browser_proxy = {"server": None} |
| | user_agent = ( |
| | "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" |
| | ) |
| | ignore_https_errors = True |
| |
|
| | |
| | api_token = os.environ.get("token") |
| |
|
| | |
| | gotify_host = os.environ.get("gotify_host") |
| | gotify_port = os.environ.get("gotify_port") |
| | gotify_token = os.environ.get("gotify_token") |
| | gotify_img = "https://img.evimo.top/gotify.png" |
| | priority = 0 |
| |
|
| | |
| | mysql_option = { |
| | "HOST": os.environ.get("DB_HOST"), |
| | "PORT": int(os.environ.get("DB_PORT")), |
| | "USERNAME": os.environ.get("DB_USERNAME"), |
| | "PASSWORD": os.environ.get("DB_PASSWORD"), |
| | "DATABASE": os.environ.get("DB_DATABASE"), |
| | } |
| |
|
| | |
| | logfile_mapping = { |
| | "vits": join(PROD_PATH, "log/vits.log"), |
| | "bilibili": join(PROD_PATH, "log/bilibili.log"), |
| | "v2ex": join(PROD_PATH, "log/v2ex.log"), |
| | "tsdm": join(PROD_PATH, "log/tsdm.log"), |
| | "wuaipojie": join(PROD_PATH, "log/wuaipojie.log"), |
| | "aliyundrive": join(PROD_PATH, "log/aliyundrive.log"), |
| | } |
| |
|
| | |
| | vits_title = "vits server" |
| | vits_url = "https://huggingface.co/spaces/evi0mo/vits-fastapi-server/settings" |
| | vits_logger = register_logger("vits", logfile_mapping["vits"]) |
| | vits_cookie_file = join(PROD_PATH, "cookie/vits.json") |
| | hf_username = os.environ.get("hf_username") |
| | hf_password = os.environ.get("hf_password") |
| | vits_img = "https://img.evimo.top/huggingface.png" |
| |
|
| | |
| | wuaipojie_title = "wuaipojie" |
| | wuaipojie_logger = register_logger("wuaipojie", logfile_mapping["wuaipojie"]) |
| | wuaipojie_cookie_file = join(PROD_PATH, "cookie/wuaipojie.json") |
| | wuaipojie_url = "https://www.52pojie.cn/home.php?mod=task&do=apply&id=2" |
| | wuaipojie_sign_url = "https://www.52pojie.cn/home.php?mod=task&do=draw&id=2" |
| | wuaipojie_img = "https://img.evimo.top/wuaipojie.png" |
| |
|
| | |
| | v2ex_title = "V2EX" |
| | v2ex_logger = register_logger("v2ex", logfile_mapping["v2ex"]) |
| | v2ex_cookie_file = join(PROD_PATH, "cookie/v2ex.json") |
| | v2ex_url = "https://v2ex.com" |
| | v2ex_sign_url = "https://v2ex.com/mission/daily" |
| | v2ex_img = "https://img.evimo.top/v2ex.png" |
| |
|
| | |
| | bilibili_title = "Bilibili" |
| | bilibili_logger = register_logger("bilibili", logfile_mapping["bilibili"]) |
| | bilibili_cookie_file = join(PROD_PATH, "cookie/bilibili.json") |
| | bilibili_url = "https://account.bilibili.com/account/home" |
| | bilibili_sign_url = "https://api.live.bilibili.com/xlive/web-ucenter/v1/sign/DoSign" |
| | bilibili_live_url = "https://live.bilibili.com" |
| | bilibili_live_rooms = os.environ.get("bilibili_live_rooms") |
| | bilibili_img = "https://img.evimo.top/bilibili.png" |
| |
|
| | |
| | tsdm_title = "天使动漫" |
| | tsdm_logger = register_logger("tsdm", logfile_mapping["tsdm"]) |
| | tsdm_cookie_file = join(PROD_PATH, "cookie/tsdm.json") |
| | tsdm_url = "https://www.tsdm39.com/forum.php?mobile=no" |
| | tsdm_sign_url = "https://www.tsdm39.com/plugin.php?id=dsu_paulsign:sign&mobile=yes&simpletype=yes" |
| | tsdm_cliwork_url = "https://www.tsdm39.com/plugin.php?id=np_cliworkdz:work" |
| | tsdm_plugin_id = [1, 2, 4, 6, 7, 9] |
| | tsdm_minds = { |
| | "kx": "开心", |
| | "ng": "难过", |
| | "ym": "郁闷", |
| | "wl": "无聊", |
| | "nu": "怒", |
| | "ch": "擦汗", |
| | "fd": "奋斗", |
| | "yl": "慵懒", |
| | "shuai": "衰", |
| | } |
| | tsdm_img = "https://img.evimo.top/tsdm.jpg" |
| |
|
| | |
| | aliyundrive_title = "阿里云盘" |
| | aliyundrive_logger = register_logger("aliyundrive", logfile_mapping["aliyundrive"]) |
| | aliyundrive_refresh_token = os.environ.get("aliyundrive_refresh_token") |
| | aliyundrive_cookie_file = join(PROD_PATH, "cookie/aliyundrive.json") |
| | aliyundrive_url = "https://www.aliyundrive.com/drive" |
| | aliyundrive_nickname_url = "https://api.aliyundrive.com/adrive/v2/user/get" |
| | aliyundrive_access_token_url = "https://auth.aliyundrive.com/v2/account/token" |
| | aliyundrive_signin_url = "https://member.aliyundrive.com/v1/activity/sign_in_list" |
| | aliyundrive_reward_url = "https://member.aliyundrive.com/v1/activity/sign_in_reward" |
| | aliyundrive_img = "https://img.evimo.top/aliyundrive.png" |
| |
|