1 parent
8ffeb59dd4
commit
51356c69a3
40 files changed
+2196
-29
No files matched your search
+24
-4
@@ -1,22 +1,42 @@
|
||||
# 本地环境变量模板(可复制到 .env 后填写,.env 已被 .gitignore 排除)
|
||||
# 说明:本文件只放占位符,禁止提交任何真实口令。
|
||||
# 公寓端本地运行环境变量模板(IT-0 / IT-1)
|
||||
# 用法:复制为 dev/.env(或 dev/scripts/.env)后填写真实值。
|
||||
# .env 已被 .gitignore 忽略,禁止提交;本模板不得写入任何真实口令。
|
||||
# 严禁把明文口令写入数据库配置文件、CI 脚本或提交记录。
|
||||
|
||||
# ---- MySQL(apt_rev01)----
|
||||
APT_DB_HOST=127.0.0.1
|
||||
APT_DB_PORT=3306
|
||||
APT_DB_NAME=apt_rev01
|
||||
APT_DB_USER=iotlocks
|
||||
APT_DB_PASSWORD=<从本机安全位置填入,勿提交>
|
||||
APT_DB_PASSWORD=<required: database account password>
|
||||
|
||||
# ---- Redis ----
|
||||
APT_REDIS_HOST=127.0.0.1
|
||||
APT_REDIS_PORT=6379
|
||||
APT_REDIS_DB=1
|
||||
APT_REDIS_PASSWORD=
|
||||
APT_REDIS_KEY_PREFIX=apt:rev01:
|
||||
|
||||
APT_TOKEN_SECRET=<32 位以上随机串,可用 openssl rand -hex 32 生成>
|
||||
# ---- JWT ----
|
||||
# TokenService.signWith(HS512, secret) requires a Base64-encoded key whose decoded
|
||||
# length is at least 64 bytes. Plain text / hex / placeholder text causes
|
||||
# ArrayIndexOutOfBoundsException on login.
|
||||
# PowerShell generation example:
|
||||
# $b = New-Object byte[] 64
|
||||
# (New-Object System.Security.Cryptography.RNGCryptoServiceProvider).GetBytes($b)
|
||||
# [Convert]::ToBase64String($b)
|
||||
APT_TOKEN_SECRET=<required: Base64 HS512 key, decoded length >= 64 bytes>
|
||||
|
||||
# ---- Apartment identity (D5: one process, one gyid) ----
|
||||
APT_GY_ID=APT-REV01-001
|
||||
|
||||
# ---- Runtime ----
|
||||
APT_HTTP_PORT=8080
|
||||
APT_UPLOAD_PATH=./uploadPath
|
||||
APT_PROBE_ENABLED=true
|
||||
APT_PROBE_TIMEOUT_MS=2000
|
||||
|
||||
# ---- Druid console (disabled by default) ----
|
||||
APT_DRUID_CONSOLE=false
|
||||
APT_DRUID_USER=aptadmin
|
||||
APT_DRUID_PASSWORD=
|
||||
Reference in new issue
Block a user