From de211651bf550524c7650d043eb6f176d48a27a8 Mon Sep 17 00:00:00 2001 From: Elijah R Date: Sun, 7 Apr 2024 16:11:39 -0400 Subject: [PATCH] add config.example.toml --- config.example.toml | 55 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 config.example.toml diff --git a/config.example.toml b/config.example.toml new file mode 100644 index 0000000..feb7949 --- /dev/null +++ b/config.example.toml @@ -0,0 +1,55 @@ +[Registration] +EmailVerificationRequired = true +EmailDomainWhitelist = true +AllowedEmailDomains = [ + # Public providers + "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", + # CollabVM and friends + "computernewb.com", "elijahr.dev", "darkok.xyz", "kevinthe.horse", "kevinhosting.xyz", +] + +[Accounts] +MaxSessions = 10 +SessionExpiryDays = 30 + +[CollabVM] +SecretKey = "hunter2" + +[HTTP] +Host = "127.0.0.1" +Port = 5858 +UseXForwardedFor = false +TrustedProxies = ["127.0.0.1"] + +[MySQL] +Host = "127.0.0.1" +Username = "root" +Password = "hunter2" +Database = "collabvm_auth" + +[SMTP] +Host = "localhost" +Port = 587 +Username = "noreply@example.com" +Password = "hunter2" +FromName = "CollabVM" +FromEmail = "noreply@example.com" +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. +""" +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] +Enabled = false +Secret = "" +SiteKey = "" + +