mpp-server-dev2/config/users.yml

64 lines
3.0 KiB
YAML
Raw Normal View History

# User data config file
2024-07-23 11:54:36 +02:00
# The default username for new users.
2023-10-25 06:04:56 +02:00
defaultName: Anonymous
2024-07-23 11:54:36 +02:00
# The default user flags for new users.
# These flags control arbitrary data that could be checked by any part of the code.
# This is an internal feature available on MPP.com, but not MPP.net.
2023-09-09 07:35:56 +02:00
defaultFlags:
volume: 100
2024-07-23 11:54:36 +02:00
# Whether or not to allow users to change their color.
# Based on some reports, the MPP.com server stopped allowing this around 2016.
2024-10-24 09:09:30 +02:00
enableColorChanging: true
2024-07-23 11:54:36 +02:00
# Whether to allow custom data inside note messages.
# This was in the original server, but not in MPP.net's server do to stricter sanitization.
# This only exists for backwards compatibility with scripts like nagalun's drawing script.
2023-09-12 07:55:15 +02:00
enableCustomNoteData: true
2024-07-23 11:54:36 +02:00
2024-08-03 07:00:20 +02:00
# Whether or not to enable tags that are sent publicly.
# This won't prevent admins from changing tags internally, but they will not be sent to clients if set to false.
2024-10-23 08:31:05 +02:00
enableTags: true
2024-08-03 07:00:20 +02:00
2024-07-23 11:54:36 +02:00
# This is the user data that the server will use to send admin chat messages with.
# This is a feature available on MPP.com, but was unknown to the MPP.net developers, therefore not implemented on MPP.net.
adminParticipant:
_id: "0"
name: mpp
color: "#fff"
id: "0"
2024-07-23 11:54:36 +02:00
# Allows admins to evaluate code through the "eval" message.
# This is a security risk, so only enable this if you trust your admins.
enableAdminEval: true
2024-07-23 11:54:36 +02:00
2024-07-23 20:45:52 +02:00
# The token validation scheme. Valid values are "none", "jwt" and "uuid".
# This server will still validate existing tokens generated with other schemes if not set to "none", mimicking MPP.net's server.
# This is set to "none" by default because MPP.com does not have a token system.
2024-10-24 09:09:30 +02:00
tokenAuth: jwt
# The browser challenge scheme. Valid options are "none", "obf" and "basic".
# This is to change what is sent in the "b" message.
# "none" will disable the browser challenge,
# "obf" will sent an obfuscated function to the client,
# and "basic" will just send a simple function that expects a boolean.
2024-08-13 11:55:27 +02:00
# FIXME Note that "obf" is not implemented yet, and has undefined behavior.
browserChallenge: none
# Scheme for generating user IDs.
# Valid options are "random", "sha256", "mpp" and "uuid".
# "random" will generate a random ID. As of writing, this is in use by MPP.com's server, but likely a mistake or poor workaround.
# "sha256" will generate a hash of the user's IP address and the server's SALT with the SHA256 algorithm.
# "mpp" will generate a hash of the user's IP address in the same way that MPP.com and MPP.net do. This is the default.
# "uuid" will generate a UUID for the user ID.
idGeneration: mpp
# Scheme for generating user colors.
# Valid options are "random", "sha256", "mpp" and "white".
# "random" will generate a random color for the user. This is not a known feature of any other server.
# "sha256" will generate a color based on a hash of the user's ID.
# "mpp" will generate a color based on the user's ID with a separate salt variable. This salt must be provided in the "COLOR_SALT" environment variable in the .env file.
colorGeneration: mpp