hand_of_morpheus/example-config.yaml
2025-03-28 16:01:43 +00:00

47 lines
1.4 KiB
YAML

port: 6626
homeserver: "we2.ee"
# Token reset configuration
token_reset_time_utc: 0 # 00:00 UTC
downtime_before_token_reset: 10 # 10 minutes before that time, registration is closed
# Email rate limiting and multiple account settings
email_cooldown: 3600 # 1 hour cooldown between requests for the same email
multiple_users_per_email: false # If false, each email can only be used once
# Matrix admin credentials
matrix:
enabled: true
homeserver: "https://we2.ee"
room_id: "!Announcements_Room_ID:we2.ee"
username: "@canary:we2.ee"
password: "Password_of_canary"
# GPG Configuration
gpg:
key_id: "Your_GPG_Key_ID"
# SMTP configuration
smtp:
host: "smtp.protonmail.ch"
port: 587
username: "admin@we2.ee"
password: "YourPassword"
use_tls: true
# Email templates
email_subject: "Your Registration Token for {homeserver}"
email_body: |
Hello,
Thank you for your interest in {homeserver}, {requested_username}.
The registration token today is: {registration_token}
This registration token is valid for {time_until_reset}. If you do not register in that period, you will need to request the new registration token.
Please ensure you use the username {requested_username} when you register. Using a different username may result in your account being deleted at a later time without forewarning.
Regards,
{homeserver} registration team