mirror of
https://github.com/unmojang/drasl.git
synced 2025-08-05 11:56:10 -04:00
Add example-config.toml
This commit is contained in:
parent
19a55762c9
commit
3dbc20a6a9
@ -116,13 +116,7 @@ func DefaultConfig() Config {
|
|||||||
MinPasswordLength: 8,
|
MinPasswordLength: 8,
|
||||||
RateLimit: defaultRateLimitConfig,
|
RateLimit: defaultRateLimitConfig,
|
||||||
RegistrationExistingPlayer: registrationExistingPlayerConfig{
|
RegistrationExistingPlayer: registrationExistingPlayerConfig{
|
||||||
Allow: false,
|
Allow: false,
|
||||||
Nickname: "Mojang",
|
|
||||||
SessionURL: "https://sessionserver.mojang.com",
|
|
||||||
AccountURL: "https://api.mojang.com",
|
|
||||||
SetSkinURL: "https://www.minecraft.net/msaprofile/mygames/editskin",
|
|
||||||
RequireSkinVerification: true,
|
|
||||||
RequireInvite: false,
|
|
||||||
},
|
},
|
||||||
RegistrationNewPlayer: registrationNewPlayerConfig{
|
RegistrationNewPlayer: registrationNewPlayerConfig{
|
||||||
Allow: true,
|
Allow: true,
|
||||||
|
15
example/config-example.toml
Normal file
15
example/config-example.toml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# Drasl default config file
|
||||||
|
|
||||||
|
# Example: drasl.example.com
|
||||||
|
Domain = ""
|
||||||
|
|
||||||
|
# Example: https://drasl.example.com
|
||||||
|
BaseURL = ""
|
||||||
|
|
||||||
|
# List of usernames who automatically become admins of the Drasl instance
|
||||||
|
DefaultAdmins = [""]
|
||||||
|
|
||||||
|
[RegistrationNewPlayer]
|
||||||
|
Allow = true
|
||||||
|
AllowChoosingUUID = true
|
||||||
|
RequireInvite = true
|
Loading…
x
Reference in New Issue
Block a user