Configurations
Application service configuration items consist of environement variables and distribution dynamic configuration.
Each configuration item is assigned to the variable Values of the backend service.
In addition, when dynamic configuration is published, each node with the same namespace will automatically sync up the variable Values.

Environement
MODE
Working mode, default
debug
HOSTNAME
Host, the default is the hostname of the pod
ADDRESS
Listening address, default
:3000XAPI recommends setting
:6000,OpenAPI recommends setting:9000
CONSOLE *required
Public address of the front end
For example: https://console.developer.com
IP
Customize the header to get the IP, default
X-Forwarded-ForFor example: after CDN, WAF, etc. back to the source Kubernetes the original "X-Forwarded-For" will lose the real IP coverage
XDOMAIN
Customized XSRF Cookie Domain Names
For example: solve the problem that XSRF Token cannot be obtained due to the separation of the front and back ends
NAMESPACE *required
Namespace, it's unique within the same Nats tenant, DevOps defaults to
weplanxtenant
KEY *required
App key for signing, data encryption, etc
DATABASE_URL *required
MongoDB connection address
DATABASE_NAME *required
MongoDB database name
DATABASE_REDIS *required
Redis connection address
NATS_HOSTS *required
Nats connection host, use
,split
NKEY_NKEY *required
Nats NKEY authentication
INFLUX_URL *required
InfluxDB connection address
INFLUX_ORG *required
Organization naming for InfluxDB
INFLUX_TOKEN *required
Authorized Token for InfluxDB
INFLUX_BUCKET *required
InfluxDB bucket
OTLP_ENDPOINT *required
OpenTelemetry ENDPOINT
OTLP_TOKEN *required
OpenTelemetry TOKEN
Dynamic
Dynamic configuration is based on the Nats KeyValue implementation, which is the core of supporting distribution application configuration sync up.
Data stores are encrypted, but allow deciphers to return after authentication.
*secret This part of the field will not be returned in its entirety, and it means it is not empty when returning
*.

SessionTTL
time.DurationSession period, default1hFor example: how many seconds of session contract renewal in the operation
LoginTTL
time.DurationLogin failed lock duration, default15m
LoginFailures
int64Maximum number of consecutive login failures, default5
IpLoginFailures
int64The maximum number of consecutive login failures with IP, default10
IpWhitelist
[]stringIP Whitelist
IpBlacklist
[]stringIP Blacklist
PwdStrategy
intPassword strength policy0Unlimited1Uppercase and lowercase letters2Uppercase and lowercase letters, numbers3Uppercase and lowercase letters, numbers, special characters
PwdTTL
time.DurationPassword valid period,0permanent
Cloud
stringPublic cloud platformtencentTencent CloudaliyunAlibaba CloudawsAmazon Cloud
TencentSecretId
stringSecret ID of Tencent CloudIt is recommended to create a CAM subuser for this app and authorize the minimum permissions required
TencentSecretKey *secret
stringSecret Key of Tencent Cloud
TencentCosBucket
stringBucket of Tencent Cloud COS
TencentCosRegion
stringCOS Region
TencentCosExpired
int64Presignature valid period in seconds
TencentCosLimit
int64Upload size limit
Collaboration
stringOffice collaboration platformlarkLark or Feishu
LarkAppId
stringApp ID of Lark & Feishu
LarkAppSecret *secret
stringApp Secret of Lark & Feishu
LarkEncryptKey *secret
stringEncrypt Key of Lark & Feishu
LarkVerificationToken *secret
stringVerification Token of Lark & Feishu
RedirectUrl
stringThird-party redirect address
EmailHost
stringPublic Email SMTP Address
EmailPort
intPublic Email SMTP port number (SSL), default465
EmailUsername
stringPublic Email User
EmailPassword *secret
stringPublic Email Password
ApiGatewayUrl
stringAPI Gateway Address
ApiGatewayKey
stringKey of API Gateway ApplicationExample: Tencent Cloud API Gateway Authentication
ApiGatewaySecret *secret
stringSecret of API Gateway Application
RestControls
map[string]*RestControlDynamic configuration of Mongo RestRestControl
Keys
[]stringProjectionSensitives
[]stringDesensitizationStatus
boolAllow accessEvent
boolEvent callbacks
RestTxnTimeout
time.DurationTransaction suspend valid period, default3m
Extended Dynamic
Weplanx/server also extends other configurations, which are not required if other applications are customized:
IpAddress
stringAddress to get IPv4 detailsCurrently using Tencent Cloud Market 数链云
The log set is marked as
metadata.version: shuliancloud.v4
IpSecretId
stringGet Secret ID of IPv4 details
IpSecretKey *secret
stringGet Secret Key for IPv4 Details
Ipv6Address
stringAddress to get IPv6 detailsCurrently using Tencent Cloud Market 数链云
The log set is marked as
metadata.version: shuliancloud.v4
Ipv6SecretId
stringGet Secret ID of IPv6 details
Ipv6SecretKey *secret
stringGet Secret Key for IPv6 Details
SmsSecretId
stringSecret ID of Tencent Cloud SMS
SmsSecretKey *secret
stringSecret of Tencent Cloud SMS
SmsSign
stringSign of Tencent Cloud SMS
SmsAppId
stringApp ID of Tencent Cloud SMS
SmsRegion
stringRegion of Tencent Cloud SMS
SmsPhoneBind
stringTemplate ID for mobile binding of Tencent Cloud SMS
SmsLoginVerify
stringTemplate ID for login of Tencent Cloud SMS
EmqxHost
stringEMQX API Host
EmqxApiKey
stringKey of EMQX API
EmqxSecretKey *secret
stringSecret Key of EMQX API
AccelerateAddress
stringAddress of accelerate function of Tencent Cloud SCFInternational network not required
CamUin
stringTencent cloud main account ID
Last updated
Was this helpful?