8633ec3735
* refactor(logger): improve logger format * chore: improve log format * feat(logger): plugin-logger * feat: allow to download log files, close T-1917 * chore: update yarn.lock * chore: improve log format * fix: add maxsize params * chore: add userId field to request * chore: remove userId from request * chore: change userId in response * chore: change action in response * chore: add database logger * fix: build * fix: test * chore: solve conflicts * fix: escape delimiter in message * refactor: improve create logger api * chore: update app logger options * chore: remove colorize for json * fix: bug of data2tree * fix: test * chore: log * chore: remove GITHUB_ACTION check * fix: bug * chore: change version * fix: transports * fix: mockServer * chore: use new plugin settings api * fix: version * fix: build * feat: support logfmt * fix: build * fix: build * fix: test * chore: update config * fix: test * fix: bug * fix: test * fix: format * chore: update path * fix: build * fix: bug * chore: update comment * fix: allow to custom format * fix: package.json * fix: version * fix: bug
106 lines
2.5 KiB
Plaintext
106 lines
2.5 KiB
Plaintext
################# DOCKER #################
|
|
|
|
ADMINER_PORT=10101
|
|
DB_MYSQL_PORT=10102
|
|
DB_POSTGRES_PORT=10103
|
|
VERDACCIO_PORT=10104
|
|
# VERDACCIO_URL=http://host.docker.internal:10104/
|
|
|
|
################# NOCOBASE APPLICATION #################
|
|
|
|
# !!! When `APP_ENV=production`, opening http://localhost:13000/ will show "Not Found".
|
|
# !!! It is recommended to use nginx to proxy static files. For example https://github.com/nocobase/nocobase/blob/main/docker/nocobase/nocobase.conf
|
|
APP_ENV=development
|
|
APP_PORT=13000
|
|
APP_KEY=test-key
|
|
|
|
API_BASE_PATH=/api/
|
|
API_BASE_URL=
|
|
|
|
PROXY_TARGET_URL=
|
|
|
|
# console | file | dailyRotateFile
|
|
LOGGER_TRANSPORT=
|
|
LOGGER_BASE_PATH=storage/logs
|
|
# 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=
|
|
|
|
################# DATABASE #################
|
|
|
|
DB_DIALECT=sqlite
|
|
DB_STORAGE=storage/db/nocobase.sqlite
|
|
DB_TABLE_PREFIX=
|
|
# DB_HOST=localhost
|
|
# DB_PORT=5432
|
|
# DB_DATABASE=postgres
|
|
# DB_USER=nocobase
|
|
# DB_PASSWORD=nocobase
|
|
# DB_LOGGING=on
|
|
# DB_UNDERSCORED=false
|
|
|
|
#== SSL CONFIG ==#
|
|
# DB_DIALECT_OPTIONS_SSL_CA=
|
|
# DB_DIALECT_OPTIONS_SSL_KEY=
|
|
# DB_DIALECT_OPTIONS_SSL_CERT=
|
|
# DB_DIALECT_OPTIONS_SSL_REJECT_UNAUTHORIZED=true
|
|
|
|
################# CACHE #################
|
|
CACHE_DEFAULT_STORE=memory
|
|
# max number of items in memory cache
|
|
CACHE_MEMORY_MAX=2000
|
|
# CACHE_REDIS_URL=
|
|
|
|
################# STORAGE (Initialization only) #################
|
|
|
|
INIT_ROOT_EMAIL=admin@nocobase.com
|
|
INIT_ROOT_PASSWORD=admin123
|
|
INIT_ROOT_NICKNAME=Super Admin
|
|
INIT_ROOT_USERNAME=nocobase
|
|
|
|
# local or ali-oss
|
|
DEFAULT_STORAGE_TYPE=local
|
|
|
|
# LOCAL STORAGE
|
|
LOCAL_STORAGE_BASE_URL=/storage/uploads
|
|
LOCAL_STORAGE_DEST=storage/uploads
|
|
|
|
# ALI OSS STORAGE
|
|
ALI_OSS_STORAGE_BASE_URL=
|
|
ALI_OSS_REGION=oss-cn-beijing
|
|
ALI_OSS_ACCESS_KEY_ID=
|
|
ALI_OSS_ACCESS_KEY_SECRET=
|
|
ALI_OSS_BUCKET=
|
|
|
|
# Tencent COS STORAGE
|
|
TX_COS_STORAGE_BASE_URL=
|
|
TX_COS_REGION=ap-guangzhou
|
|
TX_COS_SECRET_ID=
|
|
TX_COS_SECRET_KEY=
|
|
TX_COS_BUCKET=
|
|
|
|
# AWS
|
|
AWS_ACCESS_KEY_ID=
|
|
AWS_SECRET_ACCESS_KEY=
|
|
AWS_S3_REGION=
|
|
AWS_S3_BUCKET=
|
|
AWS_S3_STORAGE_BASE_URL=
|
|
|
|
# ALI SMS VERIFY CODE CONFIG
|
|
INIT_ALI_SMS_ACCESS_KEY=
|
|
INIT_ALI_SMS_ACCESS_KEY_SECRET=
|
|
INIT_ALI_SMS_ENDPOINT=
|
|
INIT_ALI_SMS_VERIFY_CODE_TEMPLATE=
|
|
INIT_ALI_SMS_VERIFY_CODE_SIGN=
|
|
|
|
# use any string name (no space)
|
|
DEFAULT_SMS_VERIFY_CODE_PROVIDER=
|
|
|
|
# in nodejs 17+ that SSL v3 causes some ecosystem libraries to become incompatible. Configuring this option can prevent upgrading SSL V3
|
|
# NODE_OPTIONS=--openssl-legacy-provider
|