Config API
8/19/25Less than 1 minute
Config API
If you try the Install doc, you will find it can't run, because we don't change the app config.
So, on this, we will change the config of api.
Redis Config
The app use Redis to store user data.
| Name | Description | default | type |
|---|---|---|---|
| host | Redis server IP address | None | str |
| port | Redis server port | 6379 | int |
| db | Redis database number | 0 | int |
| username | Redis server username | default | str |
| password | Redis server password | None | str |
SMTP Config
The app use SMTP to send email.
| Name | Description | default | type |
|---|---|---|---|
| server | SMTP server IP address | None | str |
| port | SMTP server port | 687 | int |
| username | SMTP server username | None | str |
| password | SMTP server password | None | str |
| send_email | Sender email address | None | str |
APP Config
| Name | Description | default | type |
|---|---|---|---|
| host | Server running IP | 0.0.0.0 | str |
| port | Server running port | 5002 | int |
| debug | Debug mode | False | bool |
Config.yml demo
smtp:
server: smtp.114514.com
port: 587
username: r114514
password: xdcywbezdbc_25565_xxshhiwqsd
sender_email: XXXID@mail.kkkkkcrafttttttt.cc
redis:
host: redipsdnwe.9dho76hsido.tv
port: 18156
db: 0
username: default
password: CMlAminisdyowdbiouo03ooif
decode_responses: true
app:
host: 0.0.0.0
port: 5002
debug: falseAfter, you can try run server again!
