feat: 打包使用的配置文件
This commit is contained in:
153
restagent/restconf.yaml
Normal file
153
restagent/restconf.yaml
Normal file
@@ -0,0 +1,153 @@
|
|||||||
|
# file: log file name
|
||||||
|
# level: /trace/debug/info/warn/error/fatal, default: debug
|
||||||
|
# duration: rotation time with xx hours, example: 1/12/24 hours
|
||||||
|
# count: rotation count of log, default is 30 rotation
|
||||||
|
logger:
|
||||||
|
file: "../temp/log/restagent.log"
|
||||||
|
level: "trace"
|
||||||
|
duration: 24
|
||||||
|
count: 2
|
||||||
|
|
||||||
|
# rest agent listen ipv4/v6 and port, support multiple routines
|
||||||
|
# ip: 0.0.0.0 or ::0, support IPv4/v6
|
||||||
|
rest:
|
||||||
|
- ipv4: 0.0.0.0
|
||||||
|
ipv6:
|
||||||
|
port: 3186
|
||||||
|
- ipv4: 0.0.0.0
|
||||||
|
ipv6:
|
||||||
|
port: 3187
|
||||||
|
scheme: https
|
||||||
|
caFile: ./etc/certs/rootca.crt
|
||||||
|
certFile: ./etc/certs/tsa-omc.crt
|
||||||
|
keyFile: ./etc/certs/tsa-omc_pri.key
|
||||||
|
|
||||||
|
webServer:
|
||||||
|
enabled: false
|
||||||
|
rootDir: "d:/local.git/fe.ems"
|
||||||
|
listen:
|
||||||
|
- addr: :8080
|
||||||
|
schema: http
|
||||||
|
- addr: :8443
|
||||||
|
scheme: https
|
||||||
|
caFile: ./etc/certs/rootca.crt
|
||||||
|
certFile: ./etc/certs/tsa-omc.crt
|
||||||
|
keyFile: ./etc/certs/tsa-omc_pri.key
|
||||||
|
|
||||||
|
database:
|
||||||
|
type: mysql
|
||||||
|
user: root
|
||||||
|
password: 1000omc@kp!
|
||||||
|
host: "192.168.0.229"
|
||||||
|
port: 33066
|
||||||
|
name: omc_db
|
||||||
|
backup: "../temp/database"
|
||||||
|
|
||||||
|
# Redis 缓存数据,数据源声明全小写
|
||||||
|
redis:
|
||||||
|
dataSource:
|
||||||
|
# OMC系统使用库
|
||||||
|
default:
|
||||||
|
port: 6379 # Redis port
|
||||||
|
host: "192.168.0.229" # Redis host
|
||||||
|
password: ""
|
||||||
|
db: 10 # Redis db_num
|
||||||
|
# UDM网元用户库
|
||||||
|
udmuser:
|
||||||
|
port: 6379 # Redis port
|
||||||
|
host: "192.168.0.229"
|
||||||
|
password: ""
|
||||||
|
db: 0 # Redis db_num
|
||||||
|
# 多个数据源时可以用这个指定默认的数据源
|
||||||
|
defaultDataSourceName: "default"
|
||||||
|
|
||||||
|
mml:
|
||||||
|
port: 4100
|
||||||
|
sleep: 200
|
||||||
|
user: admin
|
||||||
|
password: admin
|
||||||
|
mmlHome: "../temp/mmlhome"
|
||||||
|
upload: /home/agtuser
|
||||||
|
|
||||||
|
ne:
|
||||||
|
user: root
|
||||||
|
etcdir: /usr/local/etc
|
||||||
|
bindir: /usr/local/bin
|
||||||
|
omcdir: /usr/local/omc
|
||||||
|
scpdir: /tmp
|
||||||
|
licensedir: /usr/local/etc/{neType}/license
|
||||||
|
|
||||||
|
# chk2ne: true/false, if put OmcNeConfig parameters to NE
|
||||||
|
omc:
|
||||||
|
uriPrefix: /api/rest/oam
|
||||||
|
neType: OMC
|
||||||
|
neId: 001
|
||||||
|
rmUID: 4400HX101
|
||||||
|
neName: OMC
|
||||||
|
province: GD
|
||||||
|
vendor: ""
|
||||||
|
dn: 4600
|
||||||
|
chk2ne: false
|
||||||
|
sn: 13750650
|
||||||
|
checksign: false
|
||||||
|
backup: ./backup
|
||||||
|
upload: ./upload
|
||||||
|
frontUpload: C:\AMP\Probject\ems_frontend\upload
|
||||||
|
frontTraceDir: d:/local.git/fe.ems/trace
|
||||||
|
software: ./software
|
||||||
|
license: ./license
|
||||||
|
gtpUri: gtp:192.168.2.119:2152
|
||||||
|
checkContentType: false
|
||||||
|
testMode: false
|
||||||
|
rbacMode: true
|
||||||
|
runDir:
|
||||||
|
|
||||||
|
# Alarm module setting
|
||||||
|
# Forward interface:
|
||||||
|
# email/sms
|
||||||
|
alarm:
|
||||||
|
forwardAlarm: true
|
||||||
|
email:
|
||||||
|
smtp: smtp@xxx.com.cn
|
||||||
|
port: 25
|
||||||
|
user: smtpuser
|
||||||
|
password: smtpuser@omc
|
||||||
|
sms:
|
||||||
|
apiURL: http://smsc.xxx.com.cn/
|
||||||
|
accessKeyID: xxxx
|
||||||
|
accessKeySecret: xxxx
|
||||||
|
signName: xxx SMSC
|
||||||
|
templateCode: 1000
|
||||||
|
|
||||||
|
#User authorized information
|
||||||
|
# crypt: mysql/md5/bcrypt
|
||||||
|
# token: true/false to check accessToken
|
||||||
|
# expires for session, unit: second
|
||||||
|
# Support single/multiple session of user
|
||||||
|
#
|
||||||
|
auth:
|
||||||
|
crypt: bcrypt
|
||||||
|
token: true
|
||||||
|
expires: 1800
|
||||||
|
session: multiple
|
||||||
|
publicKey: ./etc/certs/omc_pub.key
|
||||||
|
privateKey: ./etc/certs/omc_pri.key
|
||||||
|
|
||||||
|
# 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
|
||||||
|
# subid_maxnum: the max number of subscription ID, default: 20
|
||||||
|
# uri_maxlen: the max length of uri, default: 8192
|
||||||
|
# rmuid_regexp: regexp pattern of rmUID
|
||||||
|
params:
|
||||||
|
rmuidmaxnum: 50
|
||||||
|
alarmidmaxnum: 50
|
||||||
|
pmidmaxnum: 50
|
||||||
|
subidmaxnum: 20
|
||||||
|
urimaxlen: 2100000
|
||||||
|
rmuidregexp: "[0-9]{4}[A-Z]{2}[A-Z]{2}[0-9A-Z]{1}[0-9A-Z]{3}[0-9A-Z]{1,16}"
|
||||||
|
|
||||||
|
testConfig:
|
||||||
|
enabled: true
|
||||||
|
file: ./etc/testconfig.yaml
|
||||||
Reference in New Issue
Block a user