-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.toml.default
More file actions
89 lines (75 loc) · 2.75 KB
/
config.toml.default
File metadata and controls
89 lines (75 loc) · 2.75 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[core]
server_name = "My OpenFusion Server"
public_url = "api.example.xyz"
db_type = "sqlite" # "sqlite" or "postgres"
db_path = "../OpenFusion/database.db" # sqlite only
#db_username = "admin" # postgres only
#db_password = "mypassword" # postgres only
#db_host = "localhost" # postgres only
#db_port = 5432 # postgres only
#db_name = "openfusion" # postgres only
template_dir = "./templates"
port = 8888
[tls]
cert_path = "cert.pem" # app-level TLS only
key_path = "key.pem" # app-level TLS only
port = 4433
[email]
smtp_host = "smtp.example.xyz"
smtp_port = 465
smtp_email = "noreply@example.xyz"
#smtp_username = "noreply@example.xyz" # uncomment if different than email
smtp_password = "mypassword"
[game]
# GUID of the game versions compatible the OpenFusion server.
# If this identifies any custom versions, you should include the
# manifest for each one in the `versions` directory.
versions = ["ec8063b2-54d4-4ee1-8d9e-381f5babd420"]
# Hostname and login port of the OpenFusion server to advertise
login_address = "play.myserver.xyz:23000"
# If you have your own loading bar assets you wanna use (in static/launcher/loading), set true
custom_loading_screen = false
[monitor]
route = "/status"
monitor_ip = "127.0.0.1:8003"
[moderation]
namereq_route = "/namereq"
[rankinfo]
route = "/getranks"
placeholders = true
[account]
route = "/account"
## Account registration
register_subroute = "/register"
account_level = 99
require_email = false
# If this is true, accounts will not be created until after email verification.
# Note that all email verification requests expire when the API server is shut off.
require_email_verification = false
## Email verification
email_verification_subroute = "/verify"
email_verification_valid_secs = 3_600 # one hour
## Update account info
update_email_subroute = "/update/email"
update_password_subroute = "/update/password"
## One-time password
temporary_password_subroute = "/otp"
temporary_password_valid_secs = 3_600 # one hour
[auth]
route = "/auth"
refresh_subroute = "/session"
secret_path = "secret"
# Session tokens are used to authenticate requests. They should be short-lived.
# Refresh tokens are used to generate new session tokens. They should be long-lived and cached by clients.
valid_secs_refresh = 604_800 # one week
valid_secs_session = 900 # 15 minutes
[cookie]
route = "/cookie"
valid_secs = 60
[legacy]
# These routes are used in the case of a legacy web-browser based game clients such
# as Electron. If you do not use these, you can remove this section of the config.
# When multiple versions are provided, legacy endpoints will use the first one.
index_route = "/index.html"
assetinfo_route = "/assetInfo.php"
logininfo_route = "/loginInfo.php"