The Service uses the following environment variables:
AUTOUPDATE_PORT
: Port on which the service listen on. The default is9012
.MESSAGE_BUS_HOST
: Host of the redis server. The default islocalhost
.MESSAGE_BUS_PORT
: Port of the redis server. The default is6379
.VOTE_PROTOCOL
: Protocol of the vote-service. The default ishttp
.VOTE_HOST
: Host of the vote-service. The default islocalhost
.VOTE_PORT
: Port of the vote-service. The default is9013
.DATASTORE_READER_PROTOCOL
: Protocol of the datastore reader. The default ishttp
.DATASTORE_READER_HOST
: Host of the datastore reader. The default islocalhost
.DATASTORE_READER_PORT
: Port of the datastore reader. The default is9010
.DATASTORE_TIMEOUT
: Time until a request to the datastore times out. The default is3s
.DATASTORE_MAX_PARALLEL_KEYS
: Max keys that are send in one request to the datastore. The default is1000
.DATASTORE_DATABASE_USER
: Postgres User. The default isopenslides
.OPENSLIDES_DEVELOPMENT
: If set, the service uses the default secrets. The default isfalse
.SECRETS_PATH
: Path where the secrets are stored. The default is/run/secrets
.DATASTORE_DATABASE_HOST
: Postgres Host. The default islocalhost
.DATASTORE_DATABASE_PORT
: Postgres Post. The default is5432
.DATASTORE_DATABASE_NAME
: Postgres Database. The default isopenslides
.AUTH_PROTOCOL
: Protocol of the auth service. The default ishttp
.AUTH_HOST
: Host of the auth service. The default islocalhost
.AUTH_PORT
: Port of the auth service. The default is9004
.AUTH_Fake
: Use user id 1 for every request. Ignores all other auth environment variables. The default isfalse
.CONCURENT_WORKER
: Amount of clients that calculate there values at the same time. Default to GOMAXPROCS. The default is0
.METRIC_INTERVAL
: Time in how often the metrics are gathered. Zero disables the metrics. The default is5m
.
Secrets are filenames in the directory SECRETS_PATH
(default: /run/secrets/
).
The service only starts if it can find each secret file and read its content.
The default values are only used, if the environment variable OPENSLIDES_DEVELOPMENT
is set.
postgres_password
: Postgres Password. The default isopenslides
.auth_token_key
: Key to sign the JWT auth tocken. The default isauth-dev-token-key
.auth_cookie_key
: Key to sign the JWT auth cookie. The default isauth-dev-cookie-key
.