init
This commit is contained in:
22
config/config.yaml
Normal file
22
config/config.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
server:
|
||||
port: 8080
|
||||
mode: debug # debug, release, test
|
||||
|
||||
database:
|
||||
host: localhost
|
||||
port: 3306
|
||||
user: root
|
||||
password: root
|
||||
dbname: exam_registration
|
||||
charset: utf8mb4
|
||||
max_idle_conns: 10
|
||||
max_open_conns: 100
|
||||
conn_max_lifetime: 3600
|
||||
|
||||
jwt:
|
||||
secret: exam_registration_secret_key_2024
|
||||
expire: 86400 # 24 hours in seconds
|
||||
|
||||
upload:
|
||||
path: uploads
|
||||
max_size: 10485760 # 10MB
|
||||
Reference in New Issue
Block a user