43 lines
844 B
TOML
43 lines
844 B
TOML
# Futriix Application Server Configuration
|
|
|
|
[server]
|
|
port = 8080
|
|
host = "127.0.0.1"
|
|
enable_http2 = true
|
|
enable_https = false
|
|
ssl_cert_path = "./certs/cert.pem"
|
|
ssl_key_path = "./certs/key.pem"
|
|
static_files_dir = "./static"
|
|
lua_scripts_dir = "./lua-scripts"
|
|
|
|
[application]
|
|
name = "futriix"
|
|
version = "0.3.0"
|
|
max_file_size_mb = 10
|
|
supported_formats = ["pdf", "txt", "html", "css", "md", "mp3", "mp4", "js", "lua"]
|
|
|
|
[database]
|
|
enabled = true
|
|
port = 8080
|
|
host = "127.0.0.1"
|
|
|
|
[raft]
|
|
enabled = true
|
|
election_timeout_ms = 150
|
|
heartbeat_interval_ms = 50
|
|
cluster_nodes = ["127.0.0.1:8080", "127.0.0.1:8081", "127.0.0.1:8082"]
|
|
|
|
[replication]
|
|
multi_master_enabled = false
|
|
sync_interval_ms = 100
|
|
conflict_resolution = "last-write-wins"
|
|
|
|
[acl]
|
|
enabled = true
|
|
admin_users = ["admin"]
|
|
readonly_users = ["guest"]
|
|
|
|
[logging]
|
|
level = "info"
|
|
file = "futriix.log"
|