test
This commit is contained in:
parent
b5a8dcd220
commit
ecf4337d02
3 changed files with 37 additions and 2 deletions
0
banned_ips.txt
Normal file
0
banned_ips.txt
Normal file
35
config.yaml
Normal file
35
config.yaml
Normal file
|
@ -0,0 +1,35 @@
|
|||
port: 6626
|
||||
homeserver: "we2.ee"
|
||||
|
||||
# Token reset configuration
|
||||
token_reset_time_utc: 0 # 00:00 UTC
|
||||
downtime_before_token_reset: 30 # 30 minutes before that time, registration is closed
|
||||
|
||||
# Email rate limiting and multiple account settings
|
||||
email_cooldown: 60 # 1 minute cooldown between requests for the same email
|
||||
multiple_users_per_email: true # If false, each email can only be used once
|
||||
|
||||
# SMTP configuration
|
||||
smtp:
|
||||
host: "smtp.protonmail.ch"
|
||||
port: 587
|
||||
username: "i@sij.ai"
|
||||
password: "YVHRX538T983Q8MX"
|
||||
use_tls: true
|
||||
|
||||
# Email templates
|
||||
email_subject: "{homeserver} registration token"
|
||||
|
||||
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
|
|
@ -13,8 +13,8 @@ from requests.adapters import HTTPAdapter
|
|||
from urllib3.util.retry import Retry
|
||||
|
||||
# File paths
|
||||
CONFIG_FILE = "config.yaml"
|
||||
OUTPUT_FILE = "canary.txt"
|
||||
CONFIG_FILE = "config/config.yaml"
|
||||
OUTPUT_FILE = "data/canary.txt"
|
||||
TEMP_MESSAGE_FILE = "temp_canary_message.txt"
|
||||
|
||||
def load_config():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue