2022-04-29 00:09:40 +08:00
################# DOCKER #################
ADMINER_PORT=10101
DB_MYSQL_PORT=10102
DB_POSTGRES_PORT=10103
VERDACCIO_PORT=10104
2022-10-24 10:21:25 +08:00
# VERDACCIO_URL=http://host.docker.internal:10104/
2022-04-29 00:09:40 +08:00
2024-05-24 13:06:59 +08:00
################# TACHYBASE APPLICATION #################
2022-04-29 00:09:40 +08:00
2022-12-14 12:50:54 +08:00
# !!! When `APP_ENV=production`, opening http://localhost:13000/ will show "Not Found".
2024-05-24 13:06:59 +08:00
# !!! It is recommended to use nginx to proxy static files. For example https://github.com/tachybase/tachybase/blob/main/docker/tachybase/tachybase.conf
2022-05-19 00:40:55 +08:00
APP_ENV=development
APP_PORT=13000
APP_KEY=test-key
2022-04-17 10:00:42 +08:00
2024-07-22 16:43:52 +08:00
EXTENSION_UI_BASE_PATH=/adapters/
2022-05-19 00:40:55 +08:00
API_BASE_PATH=/api/
API_BASE_URL=
2022-04-07 08:10:58 +08:00
2023-12-27 13:56:13 +08:00
# console | file | dailyRotateFile
2023-04-10 21:00:29 +08:00
LOGGER_TRANSPORT=
LOGGER_BASE_PATH=storage/logs
2023-12-27 13:56:13 +08:00
# error | warn | info | debug
LOGGER_LEVEL=
# If LOGGER_TRANSPORT is dailyRotateFile and using days, add 'd' as the suffix.
LOGGER_MAX_FILES=
# add 'k', 'm', 'g' as the suffix.
LOGGER_MAX_SIZE=
# json | splitter, split by '|' character
LOGGER_FORMAT=
2023-04-10 21:00:29 +08:00
2022-04-29 00:09:40 +08:00
################# DATABASE #################
DB_DIALECT=sqlite
2024-05-24 13:06:59 +08:00
DB_STORAGE=storage/db/tachybase.sqlite
2023-02-22 12:05:59 +08:00
DB_TABLE_PREFIX=
2022-04-07 08:10:58 +08:00
# DB_HOST=localhost
# DB_PORT=5432
# DB_DATABASE=postgres
2024-05-24 13:06:59 +08:00
# DB_USER=tachybase
# DB_PASSWORD=tachybase
2022-05-19 00:40:55 +08:00
# DB_LOGGING=on
2023-03-05 07:15:45 +08:00
# DB_UNDERSCORED=false
2022-04-07 08:10:58 +08:00
2023-09-11 10:55:47 +08:00
#== SSL CONFIG ==#
# DB_DIALECT_OPTIONS_SSL_CA=
# DB_DIALECT_OPTIONS_SSL_KEY=
# DB_DIALECT_OPTIONS_SSL_CERT=
# DB_DIALECT_OPTIONS_SSL_REJECT_UNAUTHORIZED=true
2022-10-10 15:37:47 +08:00
################# CACHE #################
2023-11-20 17:14:20 +08:00
CACHE_DEFAULT_STORE=memory
# max number of items in memory cache
CACHE_MEMORY_MAX=2000
# CACHE_REDIS_URL=
2022-10-10 15:37:47 +08:00
2022-04-29 00:09:40 +08:00
################# STORAGE (Initialization only) #################
2021-12-07 15:21:16 +08:00
2024-02-20 10:35:24 +08:00
INIT_LANG=en-US
2024-04-17 13:56:39 +08:00
INIT_ROOT_EMAIL=admin@tachybase.com
INIT_ROOT_PASSWORD=!Admin123.
2022-05-19 00:40:55 +08:00
INIT_ROOT_NICKNAME=Super Admin
2024-04-17 13:56:39 +08:00
INIT_ROOT_USERNAME=tachybase
2024-07-31 02:31:08 +08:00
################# TELEMETRY #################
# TELEMETRY_ENABLED=on # 是否启用遥测
# TELEMETRY_SERVICE_NAME=tachybase-default-demo # 服务名称,默认为 tachybase-main
# OTEL_LOG_LEVEL=debug # OpenTelemetry 日志级别,仅输出到控制台,见 [官方文档](https://open-telemetry.github.io/opentelemetry-js/enums/_opentelemetry_api.DiagLogLevel.html) ,不配置则默认不输出日志
# OTEL_METRICS_READER=console,prometheus # 指标读取器, 两个均为内置, console 为控制台, prometheus 为 prometheus 服务器
# OTEL_PROMETHEUS_SERVER=on # 是否启用 Prometheus 服务,用于创建服务器以供导出指标数据
# OTEL_PROMETHEUS_PORT=9464 # Prometheus 服务器端口,默认为 9464, 注意此服务器没有鉴权
# OTEL_TRACES_PROCESSOR=console,otlp # 链路追踪处理器, 两个均为内置, console 为控制台, otlp 为 OTLP 规范的追踪服务器
# OTEL_EXPORTER_OTLP_TRACES_ENDPOINT_GRPC=http://localhost:4317 # [OTLP](https://opentelemetry.io/docs/specs/otlp/) 规范的追踪服务器的 gRPC 端点地址