Files
backend/config.json
T
2026-06-02 19:41:19 +02:00

67 lines
1.4 KiB
JSON

{
"listeners": [
{
"address": "0.0.0.0",
"port": 5555,
"https": false
}
],
"db_clients": [
{
"name": "default",
"rdbms": "mysql",
"host": "127.0.0.1",
"port": 3306,
"dbname": "visione",
"user": "visione",
"passwd": "visione",
"is_fast": false,
"number_of_connections": 1,
"timeout": 5.0
}
],
"app": {
"number_of_threads": 2,
"enable_session": false,
"document_root": "./",
"use_implicit_page": false,
"load_dynamic_views": false,
"json_parser_stack_limit": 1000,
"log": {
"use_spdlog": false,
"logfile_base_name": "",
"log_size_limit": 100000000,
"max_files": 0,
"log_level": "DEBUG",
"display_local_time": true
},
"run_as_daemon": false,
"handle_sig_term": true,
"use_gzip": true,
"use_brotli": false,
"client_max_body_size": "1M",
"client_max_memory_body_size": "256K"
},
"plugins": [],
"custom_config": {
"service_name": "visione-backend",
"migrations_path": "migrations",
"auth": {
"token_ttl_hours": 24,
"otp_ttl_minutes": 10
},
"mail": {
"smtp_host": "127.0.0.1",
"smtp_port": 1025,
"from": "[email protected]"
},
"uploads": {
"public_base_path": "/uploads",
"reports_path": "uploads/reports"
},
"cors": {
"allowed_origin": "http://localhost:5173"
}
}
}