27 lines
1.1 KiB
Bash
27 lines
1.1 KiB
Bash
# Shell environment only: copy to .env, fill the values, then source it as described in README.
|
||
SPRING_PROFILES_ACTIVE=test
|
||
SERVER_PORT=8992
|
||
APP_DB_URL='jdbc:mysql://39.105.93.138:3306/cadworld?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai'
|
||
APP_DB_USERNAME=
|
||
APP_DB_PASSWORD=
|
||
# Maximum bytes per OSS object, enforced in policy and when saving (default 100 MiB).
|
||
APP_STORAGE_MAX_UPLOAD_BYTES=104857600
|
||
OSS_ACCESS_KEY_ID=
|
||
OSS_ACCESS_KEY_SECRET=
|
||
OSS_REGION=oss-cn-beijing
|
||
OSS_BUCKET=linkerbot
|
||
# 默认 test: cadworld_dev,prod: cadworld;需要覆盖时取消注释。
|
||
# OSS_ROOT_PREFIX=cadworld_dev
|
||
APP_STORAGE_PUBLIC_BASE_URL=http://127.0.0.1:8992/admin-api/component-assets
|
||
# At least 32 UTF-8 bytes. Empty uses a random key and invalidates sessions on restart.
|
||
APP_UPLOAD_SESSION_SECRET=
|
||
# 管理端验证码与登录态有效期(单实例进程内缓存)
|
||
APP_ADMIN_AUTH_CAPTCHA_TTL=PT2M
|
||
APP_ADMIN_AUTH_TOKEN_TTL=PT24H
|
||
LOG_PATH=logs
|
||
|
||
# OSS 目录上传签名有效期(不超过会话剩余有效期)
|
||
OSS_UPLOAD_SIGNATURE_TTL=PT5M
|
||
# 上传会话有效期,续签不会延长此时间。
|
||
OSS_UPLOAD_SESSION_TTL=PT30M
|