Skip to main content

Configuring

note

The easiest way to get started with Swetrix is by using our cloud service. We do all the dirty work for you: hosting, maintenance, backups, worldwide CDN, etc. Using Cloud you still own the data, you can export it or delete it at any time you want. By using Swetrix Cloud you support maintenance and development of the product, which eventually makes it better.

The following environment variables are available for configuration:

Frontend (swetrix-fe)

VariableDefaultDescription
API_URLhttp://localhost:8080/URL of the backend API

API

VariableDefaultDescription
EMAILtest@test.comEmail address to use for access to dashboard
PASSWORD12345678Password to use for access to dashboard
JWT_ACCESS_TOKEN_SECRETjwt-access-token-secretSecret for JWT access tokens
JWT_REFRESH_TOKEN_SECRETjwt-refresh-token-secretSecret for JWT refresh tokens
REDIS_HOSTredisRedis host
CLICKHOUSE_HOSThttp://clickhouseClickHouse host
API_ORIGINSA list of allowed origins (for the Access-Control-Allow-Origin header)

Redis

VariableDefaultDescription
REDIS_PASSWORDpasswordRedis password
REDIS_PORT6379Redis port
REDIS_USERdefaultRedis user

Clickhouse

VariableDefaultDescription
CLICKHOUSE_DATABASEanalyticsClickHouse database
CLICKHOUSE_USERdefaultClickHouse user
CLICKHOUSE_PORT8123ClickHouse port
CLICKHOUSE_PASSWORDClickHouse password