Files
oxspeak_server/config.toml
T
2026-09-23 21:11:35 +02:00

32 lines
747 B
TOML

[network]
# IP address to bind to
host = "0.0.0.0"
# hostv6 = "::"
# TCP and UDP port can be the same
# HTTP port
tcp_port = 8080
# Voice/Video port
udp_port = 8080
# Uncomment for native self-signed HTTPS/WSS. Keep both files between restarts.
# [network.tls]
# cert_path = "certs/server.pem"
# key_path = "certs/server-key.pem"
# names = ["localhost", "127.0.0.1"] # include the host clients actually use
[database]
# DSN for database
# SQLite
url = "sqlite://oxspeak.db"
#url = "sqlite::memory:"
# PostgreSQL
#url = "postgresql://oxspeak:oxspeak@localhost:5432/oxspeak"
# MySQL
# url = "mysql://user:passwd@localhost:3306/db_name"
[jwt]
secret = "changeme"
# Duration in seconds
duration = 86400 # 1 day
refresh_duration = 1296000 # 15 days