2024-04-07 16:11:39 -04:00
|
|
|
[Registration]
|
2024-04-08 19:21:51 -04:00
|
|
|
# Should users be required to verify their E-Mail address with a code before they can log in?
|
|
|
|
EmailVerificationRequired = false
|
|
|
|
# If EmailDomainWhitelist is true, only users with E-Mail addresses from the domains in AllowedEmailDomains will be allowed to register.
|
2024-04-07 16:11:39 -04:00
|
|
|
EmailDomainWhitelist = true
|
|
|
|
AllowedEmailDomains = [
|
|
|
|
# Public providers
|
2024-04-07 17:53:59 -04:00
|
|
|
"gmail.com", "outlook.com", "icloud.com", "yahoo.com", "yandex.com",
|
|
|
|
"yandex.ru", "gmx.com", "spectrum.net", "comcast.net", "aol.com",
|
|
|
|
"proton.me", "protonmail.com", "tutanota.com", "fastmail.fm",
|
|
|
|
"mail.com", "email.com", "protonmail.ch", "googlemail.com", "gmx.de",
|
|
|
|
"hotmail.com", "live.com", "msn.com", "mail.ru", "googlemail.com",
|
|
|
|
"web.de", "t-online.de",
|
2024-04-07 16:11:39 -04:00
|
|
|
# CollabVM and friends
|
|
|
|
"computernewb.com", "elijahr.dev", "darkok.xyz", "kevinthe.horse", "kevinhosting.xyz",
|
|
|
|
]
|
|
|
|
|
|
|
|
[Accounts]
|
2024-04-08 19:21:51 -04:00
|
|
|
# The maximum number of sessions a user can have at once.
|
2024-04-07 16:11:39 -04:00
|
|
|
MaxSessions = 10
|
2024-04-08 19:21:51 -04:00
|
|
|
# The number of days a session can be inactive before it is deleted.
|
2024-04-07 16:11:39 -04:00
|
|
|
SessionExpiryDays = 30
|
|
|
|
|
|
|
|
[CollabVM]
|
2024-04-08 19:21:51 -04:00
|
|
|
# The key used by the CollabVM server to authenticate with the auth server.
|
2024-04-07 16:11:39 -04:00
|
|
|
SecretKey = "hunter2"
|
|
|
|
|
|
|
|
[HTTP]
|
2024-04-08 19:21:51 -04:00
|
|
|
# The address and port the HTTP server should listen on.
|
2024-04-07 16:11:39 -04:00
|
|
|
Host = "127.0.0.1"
|
|
|
|
Port = 5858
|
2024-04-08 19:21:51 -04:00
|
|
|
# If true, the server will use the X-FORWARDED-FOR header to get the client's IP address.
|
|
|
|
# This is required when you are using nginx or another reverse proxy (which you should be doing).
|
|
|
|
UseXForwardedFor = true
|
|
|
|
# If UseXForwardedFor is true, this is the list of trusted proxies that are allowed to set the X-FORWARDED-FOR header.
|
2024-04-07 16:11:39 -04:00
|
|
|
TrustedProxies = ["127.0.0.1"]
|
|
|
|
|
|
|
|
[MySQL]
|
|
|
|
Host = "127.0.0.1"
|
|
|
|
Username = "root"
|
|
|
|
Password = "hunter2"
|
|
|
|
Database = "collabvm_auth"
|
|
|
|
|
|
|
|
[SMTP]
|
2024-04-08 19:21:51 -04:00
|
|
|
# If true, E-Mail support will be enabled.
|
|
|
|
# This is required for account verification and password reset functionality.
|
|
|
|
Enabled = false
|
|
|
|
# The SMTP server and credentials to use for sending E-Mails.
|
2024-04-07 16:11:39 -04:00
|
|
|
Host = "localhost"
|
|
|
|
Port = 587
|
|
|
|
Username = "noreply@example.com"
|
|
|
|
Password = "hunter2"
|
|
|
|
FromName = "CollabVM"
|
|
|
|
FromEmail = "noreply@example.com"
|
2024-04-08 19:21:51 -04:00
|
|
|
# The subject and body of the E-Mail sent to users when they need to verify their E-Mail address.
|
2024-04-07 16:11:39 -04:00
|
|
|
VerificationCodeSubject = "CollabVM Account Verification"
|
|
|
|
VerificationCodeBody = """
|
|
|
|
Howdy! Someone (probably you) has tried to create a CollabVM account with this E-Mail. If this was you, your verification code is: $CODE
|
|
|
|
|
|
|
|
If this was not you, someone probably entered your e-mail by mistake. If this is the case, you can safely ignore this e-mail.
|
|
|
|
"""
|
2024-04-08 19:21:51 -04:00
|
|
|
# The subject and body of the E-Mail sent to users when they need to reset their password.
|
2024-04-07 16:11:39 -04:00
|
|
|
ResetPasswordSubject = "CollabVM Password Reset"
|
|
|
|
ResetPasswordBody = """
|
|
|
|
Howdy, $USERNAME! Someone (probably you) has sent a request to reset the password to your CollabVM account with this E-Mail. If this was you, your verification code is: $CODE
|
|
|
|
|
|
|
|
If this was not you, disregard this E-Mail and your password will remain unchanged. Do not share this code with anyone.
|
|
|
|
"""
|
|
|
|
|
|
|
|
[hCaptcha]
|
2024-04-08 19:21:51 -04:00
|
|
|
# If true, hCaptcha will be used for the registration, login, and password reset forms.
|
2024-04-07 16:11:39 -04:00
|
|
|
Enabled = false
|
2024-04-08 19:21:51 -04:00
|
|
|
# The hCaptcha site key and secret key.
|
2024-04-07 16:11:39 -04:00
|
|
|
Secret = ""
|
|
|
|
SiteKey = ""
|
|
|
|
|
|
|
|
|