Skip to content

Latest commit

 

History

History
35 lines (32 loc) · 2.53 KB

environment.md

File metadata and controls

35 lines (32 loc) · 2.53 KB

Configuration

Environment Variables

The Service uses the following environment variables:

  • AUTOUPDATE_PORT: Port on which the service listen on. The default is 9012.
  • MESSAGE_BUS_HOST: Host of the redis server. The default is localhost.
  • MESSAGE_BUS_PORT: Port of the redis server. The default is 6379.
  • OPENSLIDES_DEVELOPMENT: If set, the service uses the default secrets. The default is false.
  • DATABASE_PASSWORD_FILE: Postgres Password. The default is /run/secrets/postgres_password.
  • DATABASE_USER: Postgres Database. The default is openslides.
  • DATABASE_HOST: Postgres Host. The default is localhost.
  • DATABASE_PORT: Postgres Post. The default is 5432.
  • DATABASE_NAME: Postgres User. The default is openslides.
  • VOTE_PROTOCOL: Protocol of the vote-service. The default is http.
  • VOTE_HOST: Host of the vote-service. The default is localhost.
  • VOTE_PORT: Port of the vote-service. The default is 9013.
  • DATASTORE_READER_PROTOCOL: Protocol of the datastore reader. The default is http.
  • DATASTORE_READER_HOST: Host of the datastore reader. The default is localhost.
  • DATASTORE_READER_PORT: Port of the datastore reader. The default is 9010.
  • DATASTORE_TIMEOUT: Time until a request to the datastore times out. The default is 3s.
  • DATASTORE_MAX_PARALLEL_KEYS: Max keys that are send in one request to the datastore. The default is 1000.
  • AUTH_PROTOCOL: Protocol of the auth service. The default is http.
  • AUTH_HOST: Host of the auth service. The default is localhost.
  • AUTH_PORT: Port of the auth service. The default is 9004.
  • AUTH_FAKE: Use user id 1 for every request. Ignores all other auth environment variables. The default is false.
  • AUTH_TOKEN_KEY_FILE: Key to sign the JWT auth tocken. The default is /run/secrets/auth_token_key.
  • AUTH_COOKIE_KEY_FILE: Key to sign the JWT auth cookie. The default is /run/secrets/auth_cookie_key.
  • CONCURENT_WORKER: Amount of clients that calculate there values at the same time. Default to GOMAXPROCS. The default is 0.
  • CACHE_RESET: Time to reset the cache. The default is 24h.
  • METRIC_INTERVAL: Time in how often the metrics are gathered. Zero disables the metrics. The default is 5m.
  • METRIC_SAVE_INTERVAL: Interval, how often the metric should be saved to redis. Redis will ignore entries, that are twice at old then the save interval. The default is 5m.
  • DISABLE_CONNECTION_COUNT: Do not count connections. The default is false.