Allow listening on multiple interfaces

This commit is contained in:
2025-09-03 16:09:16 -04:00
parent b8eb00e313
commit 46edb7cd26
6 changed files with 172 additions and 106 deletions

View File

@@ -1,9 +1,11 @@
# WeaselDB Configuration File
[server]
unix_socket_path = "weaseldb.sock"
bind_address = "127.0.0.1"
port = 8080
# Network interfaces to listen on - both TCP for external access and Unix socket for high-performance local testing
interfaces = [
{ type = "tcp", address = "127.0.0.1", port = 8080 },
{ type = "unix", path = "weaseldb.sock" }
]
# Maximum request size in bytes (for 413 Content Too Large responses)
max_request_size_bytes = 1048576 # 1MB
# Number of I/O threads for handling connections and network events