You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.6 KiB
47 lines
1.6 KiB
NODE_ENV=production
|
|
PORT=3100
|
|
PUBLIC_BASE_URL=http://127.0.0.1:3100
|
|
# Optional. Leave empty to use backend/public/pc-admin.
|
|
PC_ADMIN_DIST_DIR=
|
|
# Reserved H5 preview config. Keep disabled for the current PC-only release.
|
|
ENABLE_H5_PREVIEW=false
|
|
# Optional. When H5 preview is enabled later, leave empty to use backend/public/h5.
|
|
H5_DIST_DIR=
|
|
|
|
# Signed login session. Replace with a long random value before production deployment.
|
|
AUTH_SESSION_SECRET=replace_with_at_least_32_random_characters
|
|
# Default: 168 hours (7 days).
|
|
AUTH_SESSION_TTL_HOURS=168
|
|
|
|
DB_CLIENT=mysql
|
|
MYSQL_HOST=127.0.0.1
|
|
MYSQL_PORT=3306
|
|
MYSQL_USER=lifanghe
|
|
MYSQL_PASSWORD=lifanghe123
|
|
MYSQL_DATABASE=lifanghe_education
|
|
MYSQL_CONNECTION_LIMIT=10
|
|
|
|
# WeChat Mini Program config for login, phone binding, and mini program code generation.
|
|
WECHAT_APP_ID=wx_your_app_id
|
|
WECHAT_APP_SECRET=your_wechat_app_secret
|
|
# Use release for production, trial for experience version, develop for development version.
|
|
WECHAT_ENV_VERSION=release
|
|
|
|
# SMS verification config.
|
|
# In production set SMS_ALLOW_TEST_CODE=false so the fixed test code cannot pass.
|
|
SMS_PROVIDER=aliyun
|
|
SMS_ALLOW_TEST_CODE=true
|
|
SMS_TEST_CODE=111111
|
|
SMS_CODE_LENGTH=6
|
|
SMS_CODE_TTL_SECONDS=300
|
|
SMS_CODE_COOLDOWN_SECONDS=60
|
|
|
|
# Aliyun SMS OpenAPI config. The SMS template must contain a variable named ${code}
|
|
# unless ALIYUN_SMS_TEMPLATE_PARAM_KEY is changed.
|
|
ALIYUN_ACCESS_KEY_ID=your_aliyun_access_key_id
|
|
ALIYUN_ACCESS_KEY_SECRET=your_aliyun_access_key_secret
|
|
ALIYUN_SMS_ENDPOINT=dysmsapi.aliyuncs.com
|
|
ALIYUN_SMS_SIGN_NAME=your_sms_sign_name
|
|
ALIYUN_SMS_TEMPLATE_CODE=SMS_000000000
|
|
ALIYUN_SMS_TEMPLATE_PARAM_KEY=code
|