forked from MrPandir-minecraft/LibreLogin-config
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.conf
More file actions
205 lines (204 loc) · 9.52 KB
/
config.conf
File metadata and controls
205 lines (204 loc) · 9.52 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
# !!THIS FILE IS WRITTEN IN THE HOCON FORMAT!!
# The hocon format is very similar to JSON, but it has some extra features.
# You can find more information about the format on the sponge wiki:
# https://docs.spongepowered.org/stable/en/server/getting-started/configuration/hocon.html
# ----------------------------------------------------------------------------------------
# LibreLogin Configuration
# ----------------------------------------------------------------------------------------
# This is the configuration file for LibreLogin.
# You can find more information about LibreLogin on the github page:
# https://github.com/kyngs/LibreLogin
# Commands that are allowed while the user is not authorized.
allowed-commands-while-unauthorized=[
login,
register,
"2fa",
"2faconfirm",
l,
log,
reg
]
# Should we automatically register all players with a premium nickname?
# !!CRACKED PLAYERS WILL NOT BE ABLE TO REGISTER PREMIUM USERNAMES!!
auto-register=false
# This section is used for MySQL database configuration.
database {
properties {
mysql {
# The name of the database.
database=librelogin
# The host of the database.
host=localhost
# The maximum lifetime of a database connection in milliseconds. Don't touch this if you don't know what you're doing.
max-life-time=600000
# The password of the database.
password=""
# The port of the database.
port=5432
# The user of the database.
user=root
}
postgresql {
# The name of the database.
database=librelogin
# The host of the database.
host=localhost
# The maximum lifetime of a database connection in milliseconds. Don't touch this if you don't know what you're doing.
max-life-time=600000
# The password of the database.
password=""
# The port of the database.
port=3306
# The user of the database.
user=root
}
sqlite {
# Path to SQLite database file. Relative to plugin datafolder.
path="user-data.db"
}
}
# The type of the database. Built-in types:
# librelogin-mysql - MySQL database, you must fill out the mysql section below.
# librelogin-postgresql - PostgreSQL database, you must fill out the postgresql section below.
# librelogin-sqlite - SQLite database, default file is "database.db", you can change it in the sqlite section below.
type=librelogin-sqlite
}
# Should we enable debug mode? This will print out debug messages to the console.
debug=false
# The default crypto provider. This is used for hashing passwords. Available Providers:
# SHA-256 - Older, not recommended. Kept for compatibility reasons.
# SHA-512 - More safer than SHA-256, but still not recommended. Kept for compatibility reasons.
# BCrypt-2A - Newer, more safe, recommended
# Argon-2ID - Newest, should be safer than BCrypt-2A, however, it can slow down the server.
default-crypto-provider=BCrypt-2A
# !!THIS OPTION IS IRRELEVANT WHEN USING PAPER!! Should we fallback players to lobby servers if the server they are on shutdowns? If set to false, they will be kicked.
fallback=true
# Sets the maximum amount of accounts that can be registered from the same IP address.
# Set to zero or less to disable.
# !!THIS IS NOT RECOMMENDED!! Due to the lack of IPv4 addresses, sometimes even entire villages share the same IP address.
ip-limit=-1
# Kick the player, if the password is wrong.
kick-on-wrong-password=false
# The authentication servers/worlds, players should be sent to, when not authenticated. On Paper, players will be spawned on the world spawn. THIS SERVERS MUST BE REGISTERED IN THE PROXY CONFIG. IN CASE OF PAPER, THE WORLDS MUST EXIST.
limbo=[
limbo
]
# !!WHEN USING PAPER, PUT ALL WORLDS UNDER "root"!!
# On Paper, players will be spawned on the world spawn.
#
# The servers/worlds player should be sent to when they are authenticated. THE SERVERS MUST BE REGISTERED IN THE PROXY CONFIG. IN CASE OF PAPER, THE WORLDS MUST EXIST.
# The configuration allows configuring forced hosts; the servers/worlds in "root" are used when players do not connect from a forced host. Use § instead of dots.
# See: https://github.com/kyngs/LibrePremium/wiki/Configuring-Servers
lobby {
root=[
world
]
}
mail {
# Should we enable the email password recovery feature?
enabled=false
# The host of the SMTP server.
host="smtp.gmail.com"
# The password used to login to the SMTP server. We highly recommend you use a unique one-time password for this.
password=password
# The port of the SMTP server.
port=587
# The sender of the email.
sender="LibreLogin Network"
# The username used to login to the SMTP server.
username=username
}
# This is used for migrating the database from other plugins.
# Please see the wiki for further information: https://github.com/kyngs/LibreLogin/wiki/Database-Migration
migration {
old-database {
mysql {
# The name of the database.
database=librelogin
# The host of the database.
host=localhost
# The maximum lifetime of a database connection in milliseconds. Don't touch this if you don't know what you're doing.
max-life-time=600000
# The password of the database.
password=""
# The port of the database.
port=5432
# The table of the old database.
table=user-data
# The user of the database.
user=root
}
postgresql {
# The name of the database.
database=librelogin
# The host of the database.
host=localhost
# The maximum lifetime of a database connection in milliseconds. Don't touch this if you don't know what you're doing.
max-life-time=600000
# The password of the database.
password=""
# The port of the database.
port=3306
# The user of the database.
user=root
}
sqlite {
# Path to SQLite database file. Relative to plugin datafolder.
path="user-data.db"
}
}
# Migrate the database on the next startup.
on-next-startup=false
# The type of the migration. Available Types:
# jpremium-mysql - Can convert from MySQL JPremium SHA256 and BCrypt
# authme-mysql - Can convert from MySQL AuthMe BCrypt and SHA256
# authme-sqlite - Can convert from SQLite AuthMe BCrypt and SHA256
# aegis-mysql - Can convert from MySQL Aegis BCrypt
# dba-mysql - Can convert from MySQL DynamicBungeeAuth, which was configured to use SHA-512
# librelogin-mysql - Can convert from MySQL LibreLogin, useful for migrating to a different database
# librelogin-sqlite - Can convert from SQLite LibreLogin, useful for migrating to a different database
type=authme-sqlite
}
# This specifies how often players should be notified when not authenticated. Set to negative to disable.
# This includes (but is not limited to):
# - Message in chat
# - Title
milliseconds-to-refresh-notification=10000
# The minimum length of a password. Set to negative to disable.
minimum-password-length=4
# The minimum length the player's name can have. Only applies to new players, set to 0 or lower to disable.
minimum-username-length=-1
# Sets which method should be used for creating fixed UUID when a new player is created.
# See the wiki for further information: https://github.com/kyngs/LibreLogin/wiki/UUID-Creators
# Available Creators:
# RANDOM - Generates a random UUID
# CRACKED - Generates a UUID based on the player's name, the same method as if the server was in offline mode
# MOJANG - If the player exists in the Mojang's database, it will be used. Otherwise, CRACKED will be used.
new-uuid-creator=MOJANG
# !!THIS OPTION IS IRRELEVANT WHEN USING PAPER!! Should we ping servers to check if they are online, and get their player count? If you disable this, the pinging servers message will still appear in the console, even though the servers will not be pinged.
ping-servers=false
# Should we remember the last server/world a player was on? This is not recommended for large networks.
remember-last-server=false
# The config revision number. !!DO NOT TOUCH THIS!!
revision=6
# Sets the login/register time limit in seconds. Set to negative to disable.
seconds-to-authorize=-1
# Defines a time in seconds after a player's session expires. Default value is one week (604800 seconds). Set to zero or less to disable sessions.
session-timeout=86400 # 1 day
# This section is used for 2FA configuration.
# !! YOU MUST HAVE PROTOCOLIZE INSTALLED FOR THIS TO WORK !!
#
# You can find more information on the wiki: https://github.com/kyngs/LibreLogin/wiki/2FA
totp {
# The delay in milliseconds until player is given a map to scan the QR code. Increase this value if the map disappears too quickly.
delay=1000
# Should we enable TOTP-Based Two-Factor Authentication? If you don't know what this is, this is the 2FA used in applications like Google Authenticator etc.
# I heavily suggest you to read this wiki page: https://github.com/kyngs/LibreLogin/wiki/2FA
enabled=false
# The label to be displayed in the 2FA app. Change this to your network name.
label="LibreLogin Network"
}
# Whether or not to use action bar when player is awaiting authentication.
use-action-bar=false
# Whether or not to use titles when player is awaiting authentication.
use-titles=true