Files
be.ems/local/omc.yaml
2025-08-18 11:10:48 +08:00

114 lines
3.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# server version: std/lite
serverVersion: "std"
# operation mode system/docker
# serverMode: "system"
# login authentication, default true
# serverLoginAuth: true
# interface encryption, default false
# serverCryptoApi: false
# route service configuration
# service listen ipv4/v6 and port, support multiple routines
routeServer:
- addr: "0.0.0.0:33040" # route http port
schema: "http"
- addr: "0.0.0.0:33443" # route https port
schema: "https"
certFile: "./local/certs/www.omc.net.crt"
keyFile: "./local/certs/www.omc.net.key"
# web service configuration
# if you are using nginx to take over, you can disable the
webServer:
enabled: false # web server enabled, default false
rootDir: /usr/local/etc/omc/web
listen:
- addr: "0.0.0.0:80" # web http port
schema: "http"
- addr: "0.0.0.0:443" # web https port
schema: "https"
certFile: "./local/certs/www.omc.net.crt"
keyFile: "./local/certs/www.omc.net.key"
# track configuration for NE signaling trace
# host fill in the specific IP address
trace:
enabled: true # trace enabled, default false
host: "192.168.5.58" # trace host, default 127.0.0.1
port: 33033 # trace port, default 33033
# data source
database:
dataSource:
# std: standard
std:
type: "mysql"
host: "192.168.9.58" # mysql host
port: 13306 # mysql port
username: "root" # mysql username
password: "1000omc@kp!" # mysql password
database: "omc_db_lite" # mysql database
logging: true
# lite: lite
lite:
type: "sqlite"
database: "./local/omc_db.sqlite" # sqlite database
logging: true
# default data source name
defaultDataSourceName: "std"
# redis cached data
redis:
dataSource:
default:
port: 16379 # redis port
host: "192.168.9.58" # redis host
password: "helloearth" # redis password
db: 10 # Redis db_num
# default data source name
defaultDataSourceName: "default"
# log
logger:
fileDir: "/var/log" # Log File Dir
fileName: "omc.log" # Log File Name
level: 0 # Log Level of 0:silent<1:info<2:warn<3:error
maxDay: 7 # Log retention Days
maxSize: 10 # Log File cutting by size
# prometheus metrics
metrics: true
# pprof go
pprofAddr: "0.0.0.0:33060"
# 静态文件配置, 相对项目根路径或填绝对路径
staticFile:
# 默认资源dir目录需要预先创建
default:
prefix: "/static"
dir: "C:/usr/local/omc/static"
# 文件上传资源目录映射,与项目目录同级
upload:
prefix: "/upload"
dir: "C:/usr/local/omc/upload"
# notification only alarm use
notification:
email:
enable: false # email enable
list: "" # toEmail,email,email
title: "Alarm from OMC" # email title
smtp: "mail.smtp.com" # email smtp
port: 25 # email port
user: "smtpext@smtp.com" # email user
password: "1000smtp@omc!" # email password
smsc:
enable: false # smsc enable
list: "" # toMobile,mobile,mobile
addr: "192.168.13.114:2775" # smsc addr
systemid: "omc" # smsc system id
systemtype: "UTRAN" # smsc system type
password: "omc123" # smsc password
coding: 0 # smsc codingMap 0:GSM7BIT, 1:ASCII, 2:BINARY8BIT1, 3:LATIN1, 4:BINARY8BIT2, 6:CYRILLIC, 7:HEBREW, 8:UCS2
servicenumber: "OMC" # smsc service number