2024-05-24 13:06:59 +08:00
|
|
|
|
################# TACHYBASE APPLICATION #################
|
2024-08-21 07:05:11 +08:00
|
|
|
|
# NOTE: production 环境将启用遥测,上报数据至生产环境,除非你知道自己在做什么并已沟通确认,否则请不要这样设置!
|
2022-05-19 00:40:55 +08:00
|
|
|
|
APP_ENV=development
|
2024-08-02 02:26:19 +08:00
|
|
|
|
APP_PORT=3000
|
2022-05-19 00:40:55 +08:00
|
|
|
|
APP_KEY=test-key
|
2022-04-17 10:00:42 +08:00
|
|
|
|
|
2024-08-02 02:26:19 +08:00
|
|
|
|
# experimental support
|
2024-07-22 16:43:52 +08:00
|
|
|
|
EXTENSION_UI_BASE_PATH=/adapters/
|
2024-08-02 02:26:19 +08:00
|
|
|
|
|
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 #################
|
|
|
|
|
|
2024-08-21 07:05:11 +08:00
|
|
|
|
# TELEMETRY_ENABLED=on # 是否启用后端遥测
|
2024-07-31 02:31:08 +08:00
|
|
|
|
# TELEMETRY_SERVICE_NAME=tachybase-default-demo # 服务名称,默认为 tachybase-main
|
2024-08-14 14:32:14 +08:00
|
|
|
|
# OTEL_LOG_LEVEL=debug # OpenTelemetry 日志级别,仅输出到控制台,见 https://open-telemetry.github.io/opentelemetry-js/enums/_opentelemetry_api.DiagLogLevel.html ,不配置则默认不输出日志
|
2024-07-31 02:31:08 +08:00
|
|
|
|
# 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 规范的追踪服务器
|
2024-08-14 14:32:14 +08:00
|
|
|
|
# OTEL_EXPORTER_OTLP_TRACES_ENDPOINT_GRPC=http://localhost:4317 # OTLP https://opentelemetry.io/docs/specs/otlp/ 规范的追踪服务器的 gRPC 端点地址
|
|
|
|
|
# 下面为前端 Sentry 跟踪配置,注意修改后需要重新 build 前端代码
|
2024-08-21 07:05:11 +08:00
|
|
|
|
# SENTRY_DSN= # Sentry DSN,用于前端遥测,留空则不启用前端遥测
|
2024-08-14 14:32:14 +08:00
|
|
|
|
# SENTRY_TRACE_ENABLE=on # 是否启用 Sentry 跟踪,文档 https://docs.sentry.io/platforms/javascript/guides/react/tracing/
|
|
|
|
|
# SENTRY_TRACE_SAMPLE_RATE=1.0 # Sentry 跟踪采样率,1.0 为 100%,0.0 为 0%,默认为 1.0
|
|
|
|
|
# SENTRY_TRACE_PROPAGATION_TARGETS=localhost,/^\// # Sentry 跟踪传播目标过滤器,多个用逗号分隔,支持正则,默认为 localhost,/^\// ,文档 https://docs.sentry.io/platforms/javascript/tracing/instrumentation/automatic-instrumentation/#tracepropagationtargets
|
|
|
|
|
# SENTRY_SESSION_REPLAY_ENABLE=on # 是否启用 Sentry 会话重放,文档 https://docs.sentry.io/platforms/javascript/guides/react/session-replay/
|
|
|
|
|
# SENTRY_SESSION_REPLAY_SAMPLE_RATE=0.1 # Sentry 会话重放采样率,1.0 为 100%,0.0 为 0%,默认为 0.1
|
|
|
|
|
# SENTRY_SESSION_REPLAY_ONERROR_SAMPLE_RATE=1.0 # Sentry 会话重放错误采样率,1.0 为 100%,0.0 为 0%,默认为 1.0
|
2024-10-16 12:04:27 +08:00
|
|
|
|
|
|
|
|
|
##### PRESETS #####
|
|
|
|
|
|
|
|
|
|
# 单写名称:添加指定插件且默认启用 名称前加!:移除指定插件 名称前加|:添加指定插件但默认禁用
|
|
|
|
|
# PRESETS_CORE_PLUGINS=api-doc,api-keys,!messages
|
|
|
|
|
# PRESETS_LOCAL_PLUGINS=gantt,!iframe-block,|audit-logs
|