Configurations
Last updated
Last updated
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.
Working mode, default debug
Host, the default is the hostname of the pod
Listening address, default :3000
XAPI recommends setting :6000
,OpenAPI recommends setting :9000
Public address of the front end
For example: https://console.developer.com
Customize the header to get the IP, default X-Forwarded-For
For example: after CDN, WAF, etc. back to the source Kubernetes the original "X-Forwarded-For" will lose the real IP coverage
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, it's unique within the same Nats tenant, DevOps defaults to weplanx
tenant
App key for signing, data encryption, etc
MongoDB connection address
MongoDB database name
Redis connection address
Nats connection host, use ,
split
Nats NKEY authentication
InfluxDB connection address
Organization naming for InfluxDB
Authorized Token for InfluxDB
InfluxDB bucket
OpenTelemetry ENDPOINT
OpenTelemetry TOKEN
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 *
.
Define the configuration file default.values.yml, and use Snake Case for the configuration name.
time.Duration
Session period, default 1h
For example: how many seconds of session contract renewal in the operation
time.Duration
Login failed lock duration, default 15m
int64
Maximum number of consecutive login failures, default 5
int64
The maximum number of consecutive login failures with IP, default 10
[]string
IP Whitelist
[]string
IP Blacklist
int
Password strength policy
0
Unlimited
1
Uppercase and lowercase letters
2
Uppercase and lowercase letters, numbers
3
Uppercase and lowercase letters, numbers, special characters
time.Duration
Password valid period,0
permanent
string
Public cloud platform
tencent
Tencent Cloud
aliyun
Alibaba Cloud
aws
Amazon Cloud
string
Secret ID of Tencent Cloud
It is recommended to create a CAM subuser for this app and authorize the minimum permissions required
string
Secret Key of Tencent Cloud
string
Bucket of Tencent Cloud COS
string
COS Region
int64
Presignature valid period in seconds
int64
Upload size limit
string
Office collaboration platform
lark
Lark or Feishu
string
App ID of Lark & Feishu
string
App Secret of Lark & Feishu
string
Encrypt Key of Lark & Feishu
string
Verification Token of Lark & Feishu
string
Third-party redirect address
string
Public Email SMTP Address
int
Public Email SMTP port number (SSL), default 465
string
Public Email User
string
Public Email Password
string
API Gateway Address
string
Key of API Gateway Application
Example: Tencent Cloud API Gateway Authentication
string
Secret of API Gateway Application
map[string]*RestControl
Dynamic configuration of Mongo Rest
RestControl
Keys []string
Projection
Sensitives []string
Desensitization
Status bool
Allow access
Event bool
Event callbacks
time.Duration
Transaction suspend valid period, default 3m
Weplanx/server also extends other configurations, which are not required if other applications are customized:
string
Address to get IPv4 details
Currently using Tencent Cloud Market 数链云
The log set is marked as metadata.version: shuliancloud.v4
string
Get Secret ID of IPv4 details
string
Get Secret Key for IPv4 Details
string
Address to get IPv6 details
Currently using Tencent Cloud Market 数链云
The log set is marked as metadata.version: shuliancloud.v4
string
Get Secret ID of IPv6 details
string
Get Secret Key for IPv6 Details
string
Secret ID of Tencent Cloud SMS
string
Secret of Tencent Cloud SMS
string
Sign of Tencent Cloud SMS
string
App ID of Tencent Cloud SMS
string
Region of Tencent Cloud SMS
string
Template ID for mobile binding of Tencent Cloud SMS
string
Template ID for login of Tencent Cloud SMS
string
EMQX API Host
string
Key of EMQX API
string
Secret Key of EMQX API
string
Address of accelerate function of Tencent Cloud SCF
International network not required
string
Tencent cloud main account ID