chore: 打包程序restagent变更omc
This commit is contained in:
@@ -3,21 +3,21 @@
|
||||
# duration: rotation time with xx hours, example: 1/12/24 hours
|
||||
# count: rotation count of log, default is 30 rotation
|
||||
logger:
|
||||
file: /usr/local/omc/log/restagent.log
|
||||
file: /usr/local/omc/log/omc.log
|
||||
level: debug
|
||||
duration: 24
|
||||
count: 90
|
||||
count: 90
|
||||
|
||||
# rest agent listen ipv4/v6 and port, support multiple routines
|
||||
# ip: 0.0.0.0 or ::0, support IPv4/v6
|
||||
# clientAuthType: 0:NoClientCert (default), 1:RequestClientCert, 2:RequireAnyClientCert,
|
||||
# clientAuthType: 0:NoClientCert (default), 1:RequestClientCert, 2:RequireAnyClientCert,
|
||||
# 3:VerifyClientCertIfGiven, 4:RequireAndVerifyClientCerts
|
||||
rest:
|
||||
- ipv4: 0.0.0.0
|
||||
ipv6:
|
||||
ipv6:
|
||||
port: 33030
|
||||
- ipv4: 0.0.0.0
|
||||
ipv6:
|
||||
ipv6:
|
||||
port: 33443
|
||||
schema: https
|
||||
clientAuthType: 0
|
||||
@@ -26,9 +26,9 @@ rest:
|
||||
keyFile: /usr/local/omc/etc/certs/omc-server.key
|
||||
|
||||
webServer:
|
||||
enabled: true
|
||||
enabled: false
|
||||
rootDir: /usr/local/omc/htdocs/front
|
||||
listen:
|
||||
listen:
|
||||
- addr: :80
|
||||
schema: http
|
||||
- addr: :443
|
||||
@@ -86,9 +86,9 @@ ne:
|
||||
scpdir: /tmp
|
||||
licensedir: /usr/local/etc/{neType}/license
|
||||
# backup etc list of IMS, does not contain spaces
|
||||
etcListIMS: '{*.yaml,mmtel,vars.cfg}'
|
||||
etcListDefault: '{*.yaml,*.conf,*.cfg}'
|
||||
# true/false to overwrite config file when dpkg ne software
|
||||
etcListIMS: "{*.yaml,mmtel,vars.cfg}"
|
||||
etcListDefault: "{*.yaml,*.conf,*.cfg}"
|
||||
# true/false to overwrite config file when dpkg ne software
|
||||
dpkgOverwrite: false
|
||||
# dpkg timeout (second)
|
||||
dpkgTimeout: 180
|
||||
@@ -114,7 +114,7 @@ omc:
|
||||
frontTraceDir: /usr/local/omc/htdocs/front/trace
|
||||
software: /usr/local/omc/software
|
||||
license: /usr/local/omc/license
|
||||
gtpUri: gtp:192.168.2.119:2152
|
||||
gtpUri: gtp:192.168.2.119:2152
|
||||
checkContentType: false
|
||||
testMode: false
|
||||
rbacMode: true
|
||||
@@ -123,8 +123,8 @@ omc:
|
||||
|
||||
# Alarm module setting
|
||||
# Forward interface:
|
||||
# email/sms
|
||||
alarm:
|
||||
# email/sms
|
||||
alarm:
|
||||
forwardAlarm: true
|
||||
email:
|
||||
smtp: smtp.xxx.com
|
||||
@@ -132,14 +132,14 @@ alarm:
|
||||
user: smtpuser@xxx.com
|
||||
password: xxxxxx
|
||||
# TLS skip verify: true/false
|
||||
tlsSkipVerify: true
|
||||
tlsSkipVerify: true
|
||||
sms:
|
||||
apiURL: http://smsc.xxx.com
|
||||
accessKeyID: xxx
|
||||
accessKeySecret: xxx
|
||||
signName: XXX SMSC
|
||||
templateCode: 1000
|
||||
|
||||
|
||||
# User authorized information
|
||||
# crypt: mysql/md5/bcrypt
|
||||
# token: true/false to check accessToken
|
||||
@@ -154,7 +154,7 @@ auth:
|
||||
publicKey: /usr/local/omc/etc/certs/omc
|
||||
privateKey: /usr/local/omc/etc/certs/omc
|
||||
|
||||
# Parameter for limit number
|
||||
# Parameter for limit number
|
||||
# rmuid_maxnum: the max number of rmUID, default: 50
|
||||
# alarmid_maxnum: the max number of AlarmID, default: 50
|
||||
# pmid_maxnum: the max number of pmID, default: 50
|
||||
@@ -171,4 +171,40 @@ params:
|
||||
|
||||
testConfig:
|
||||
enabled: false
|
||||
file: /usr/local/omc/etc/testconfig.yaml
|
||||
file: /usr/local/omc/etc/testconfig.yaml
|
||||
|
||||
# NMS-中国星网研究院
|
||||
nmsCXY:
|
||||
# 注入路由组
|
||||
routerGroup: "/nms-cxy/api/rest"
|
||||
# 专业编码2位 核心网HX 无线网WX
|
||||
professionCode: "HX"
|
||||
# 厂商编码2位 中信科ZX
|
||||
vendorCode: "AG"
|
||||
# OMC编号3位
|
||||
omcCode: "001"
|
||||
# 设备序列号
|
||||
serialNumber: "1153492"
|
||||
# Kafka配置
|
||||
kafka:
|
||||
addrs:
|
||||
- "192.168.5.59:19092"
|
||||
- "192.168.5.59:29092"
|
||||
- "192.168.5.59:39092"
|
||||
# 启用 Kerberos 认证
|
||||
krb5:
|
||||
enable: false
|
||||
config:
|
||||
configPath: "/path/to/krb5.conf"
|
||||
keyTabPath: "/path/to/keytab"
|
||||
serviceName: "kafka"
|
||||
realm: "EXAMPLE.COM"
|
||||
username: "client"
|
||||
|
||||
# OSS配置
|
||||
oss:
|
||||
bucketname: "omc-bucket"
|
||||
endpoint: "192.168.5.59:9000"
|
||||
useSSL: false
|
||||
accessKeyID: "aOW0r1gfw74G88Z3XZJ6"
|
||||
secretAccessKey: "9tDErvtCEuVox6LoQu5BOVtycQKcQjlXOGvjl1eD"
|
||||
@@ -1,5 +1,5 @@
|
||||
[Unit]
|
||||
Description=OMC rest agent daemon
|
||||
Description=OMC Service daemon
|
||||
After=network-online.target mysql.service
|
||||
|
||||
[Service]
|
||||
@@ -7,7 +7,7 @@ Type=simple
|
||||
LimitNOFILE=65535
|
||||
|
||||
Restart=always
|
||||
ExecStart=/usr/local/omc/bin/restagent -c /usr/local/omc/etc/restconf.yaml
|
||||
ExecStart=/usr/local/omc/bin/omc -c /usr/local/omc/etc/omc.yaml
|
||||
RestartSec=2
|
||||
RestartPreventExitStatus=SIGTERM SIGKILL
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
Reference in New Issue
Block a user