This commit is contained in:
2023-08-20 16:31:33 +08:00
parent e4fe101e4d
commit a2e1407da4
5 changed files with 69 additions and 13 deletions

View File

@@ -60,6 +60,7 @@ type YamlConfig struct {
CheckContentType bool `yaml:"checkContentType"`
TestMode bool `yaml:"testMode"`
RBACMode bool `yaml:"rbacMode"`
RunDir string `yaml:"runDir"`
} `yaml:"omc"`
Alarm struct {
@@ -98,10 +99,12 @@ type YamlConfig struct {
} `yaml:"ne"`
Auth struct {
Crypt string `yaml:"crypt"`
Token bool `yaml:"token"`
Expires uint32 `yaml:"expires"`
Session string `yaml:"session"`
Crypt string `yaml:"crypt"`
Token bool `yaml:"token"`
Expires uint32 `yaml:"expires"`
Session string `yaml:"session"`
PublicKey string `yaml:"publicKey"`
PrivateKey string `yaml:"privateKey"`
} `yaml:"auth"`
Params struct {

View File

@@ -63,6 +63,7 @@ omc:
checkContentType: false
testMode: true
rbacMode: true
runDir:
# Alarm module setting
# Forward interface:
@@ -91,6 +92,8 @@ auth:
token: true
expires: 1800
session: multiple
publicKey: /usr/local/omc/etc/certs/omc_pub.key
privateKey: /usr/local/omc/etc/certs/omc_pri.key
# Parameter for limit number
# rmuid_maxnum: the max number of rmUID, default: 50