forked from oliverkirk-sudo/CodeRunner-Plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
10 lines (10 loc) · 949 Bytes
/
Copy pathconfig.py
File metadata and controls
10 lines (10 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
class Config:
def __init__(self):
self.domain = "https://code-runner-plugin8.vercel.app" # 部署CodeRunner-Plugin的域名或ip,要求协议完整eg.https://example.com or http://example.com
self.proxydomain = "https://code-runner-plugin8.vercel.app" # CodeRunner-Plugin 的代理服务器域名或ip,由于vercel域名或ip可能被墙,代码或图片在国内无法下载,若不需要代理则与self.domain内容相同
self.dbname = "Cluster0" # mongodb数据库名称,在mongodb官网注册后会赠送一个免费数据库
self.CORS = False # 是否开启CORS,开启则需要Referer与self.domain或self.proxydomain相同才能访问
self.api_url = "http://7dk1cvezn.mghost.site/api.php" # 短域名api服务器地址
#这里提供一个测试的地址,不保证稳定性与速度
# api_url : http://7dk1cvezn.mghost.site/api.php
# accesskey : aB3$gH8*jK6#mN1@pQ4&rT7%wZ0^cF5(iJ9)lO2!uV6*yB0#dG3&hJ8(kM1@oP4&rS7%vY0^zC5