appidea-restapi/config.toml

42 lines
715 B
TOML

[server]
debug = true
host = "0.0.0.0:3000"
[database]
host = "127.0.0.1:3306"
database = "app-idea"
username = "root"
password = "admin"
[mail]
host = "http://127.0.0.1:3001"
key = "aaa"
[rabbitmq]
host = "localhost:5672"
username = "guest"
password = "guest"
[settings]
defaultLanguageId = 0
[settings.expires]
userSession = 72 # hours
[settings.expires.userActions] # minutes
id_0 = 5
id_1 = 5
[settings.lengths]
usernameMinLen = 3
usernameMaxLen = 30
emailMinLen = 3
emailMaxLen = 255
passwordMinLen = 6
passwordMaxLen = 250
[settings.cookies]
userId = "user_id"
sessionId = "session_id"
username = "username"
userHashtag = "user_hashtag"