Files
oxspeak_server/config.toml
T
2026-09-24 13:55:59 +02:00

36 lines
983 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
# If the server is behind NAT, set its public IPv4 here and forward UDP 8080 to it.
# external_ip = "203.0.113.1"
# STUN is enabled by default; customize or set [] to disable it.
# stun_servers = ["stun:stun.l.google.com:19302"]
# 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", "goesseau.eu"] # 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