Spaces:
Paused
Paused
File size: 1,506 Bytes
b3d2e4b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
[app]
# Address to listen, use "tor" to run an hidden service.
address = "0.0.0.0:9000"
# No trailing slashes.
root_url = "http://localhost:9000"
name = "Niltalk chat"
max_rooms = 1000
max_peers_per_room = 25
# Peer handle format (%s for ID) for peers who don't pick handles.
peer_handle_format = "Peer:%s"
# Length of the randomly generated room ID.
room_id_length = 8
# The number of messages and events (join / leave) etc. that has to be cached
# in a room to send to peers when they first join.
max_cached_messages = 100
# Maximum message length in bytes.
max_message_length = 3000
# Permitted message rate (messages / interval) after which a peer is kicked.
rate_limit_messages = 25
rate_limit_interval = "3s"
# How long will the room id persist in the db before first use?
room_age = "24h"
# Timeout in seconds for which the server will wait when sending
# a message to a peer before closing the connection. Useful for
# kicking out peers with slow connections.
websocket_timeout = "3s"
# Session cookie name.
session_cookie = "niltoken"
# Storage kind, one of redis|memory|fs.
storage = "redis"
# Redis cache server.
# Rooms are cached until they expires. Messages are not cached.
[store]
address = "redis:6379" # Eg: 127.0.0.1:6379
password = ""
db = 0
active_conns = 100
idle_conns = 20
timeout = "3s"
prefix_room = "NIL:ROOM:%s"
prefix_session = "NIL:SESS:ROOM:%s"
# InMemory store config.
# [store]
# no options available.
# FileSystem store config.
# [store]
# path = "db.json"
|