-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
45 lines (38 loc) · 1.06 KB
/
config.py
File metadata and controls
45 lines (38 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#[General Setting]
uri = "127.0.0.1:3306/Yggdrasil"
base = "mysql"
host = "0.0.0.0"
port = 19090
domain = "http://unreve.top:19090"
#[Cleaner Setting]
maximum_invalid_token = 5000
#[Yggdrasil Auth Setting]
rate = 1
#[Server Metadata Setting]
serverName = "MisakaNetwork Ethernet Yggdrasil Server"
implementationName = "MisakaNetwork-China/FlaskServer"
implementationVersion = "1a"
links_homepage = None
links_register = None
no_email_login = True
skindomains = [".unreve.top", "unreve.top", "localhost"]
legacy_skin_api = False
no_mojang_space = False
enable_anti_features = False
#[Yggdrasil Token Setting]
timeout_temp = 259200
timeout_revoke = 518400
allow_username_login = True
timeout_login = 180
maximum_amount_query_allowed = 300
maximum_pixel = 268435456
#[Yggdrasil Sign Key Setting]
private_key = "./keys/privKey.pem"
#[Mysql Setting]
user = "misakanetwork"
pas = "misakanetwork"
#[Auto Setting]
if base == "mysql":
use = "mysql+pymysql://%s:%s@%s"%(user, pas, uri)
elif base == "sqlite":
use = "sqlite://"+uri