Room Sentry
Example Configuration
[log]
level = "info"
[nats]
url = "nats://127.0.0.1:4222"
[iams]
keycloak_url = "http://iams-keycloak"
keycloak_realm = "aoh"
keycloak_client_id = "ucs"
keycloak_client_secret = "ucs"
[sql]
host = "localhost"
port = "5432"
user = "postgres"
password = "postgres"
plugin_name = "postgres"
database_name = "aoh"
schema_name = "public"
max_conns = "10"
max_idle_conns = "5"
max_conn_lifetime = "300s"
ssl_mode = "disable"
[signal]
addr = "127.0.0.1:5551"
[roomsentry]
poll_in_seconds = 1
log.level
nats.url
-
Type:
string
- The URL of the NATS server.
iams.keycloak_url
-
Type:
string
- The URL of the Keycloak server.
iams.keycloak_realm
-
Type:
string
- The realm of the Keycloak server.
iams.keycloak_client_id
-
Type:
string
- The client ID of the Keycloak server.
iams.keycloak_client_secret
-
Type:
string
- The client secret of the Keycloak server.
sql.host
-
Type:
string
- The hostname of the database
sql.port
-
Type:
string
- The port number of the database
sql.user
-
Type:
string
- The database user to connect to the database.
sql.password
-
Type:
string
- The password of the database user.
sql.plugin_name
-
Type:
string
- The name of the supported SQL databases. Currently, support
postgres
only.
sql.database_name
-
Type:
string
- The name of the database.
sql.schema_name
-
Type:
string
- The name of the schema.
sql.max_conns
-
Type:
int
- The maximum number of connections to the database.
sql.max_idle_conns
-
Type:
int
- The maximum number of idle connections to the database.
sql.max_conn_lifetime
-
Type:
string
- The maximum lifetime of a connection to the database.
sql.ssl_mode
-
Type:
string
- The SSL mode to use when connecting to the database. Allowed values are
disable
,allow
,prefer
,require
,verify-ca
,verify-full
signal.addr
-
Type:
string
- The address for gRPC signalling.
roomsentry.poll_in_seconds
-
Type:
int
- The number of seconds to poll for room DB changes.