apiVersion: v1
data:
  app.conf: |-
    AppName = diss-backend
    HttPport = 8080
    RunMode = prod
    AutoRender = false
    CopyRequestBody = true
    EnableDocs = true
    EnableHTTPS = true
    HTTPSAddr = "0.0.0.0"
    HTTPSPort = 10443
    HTTPSCertFile = "conf/ca.crt"
    HTTPSKeyFile = "conf/server.key"
    EnableAdmin = true
    AdminAddr = "0.0.0.0"
    AdminPort = "8889"

    # postgres
    [default]
    Alias = "default"
    DBName = "diss"
    User = "diss"
    Port = 5432
    Charset = "utf8"
    Host = "diss-db"
    Pwd = "dissP@ssw0rd"
    Force = false

    # postgres
    [security_log]
    Alias = "security_log"
    DBName = "postgres"
    User = "postgres"
    Port = 5432
    Charset = "utf8"
    Host = "timescale-db"
    Pwd = "password"
    Force = false

    # postgres
    [diss_api]
    Alias = "diss_api"
    DBName = "postgres"
    User = "postgres"
    Port = 5432
    Charset = "utf8"
    Host = "anchore-db"
    Pwd = "mysecretpassword"
    Force = false


    # filename 保存的文件名
    # maxlines 每个文件保存的最大行数，默认值 1000000
    # maxsize 每个文件保存的最大尺寸，默认值是 1 << 28, //256 MB
    # daily 是否按照每天 logrotate，默认是 true
    # maxdays 文件最多保存多少天，默认保存 7 天
    # rotate 是否开启 logrotate，默认是 true
    # level 日志保存的时候的级别，默认是 Trace 级别
    # perm 日志文件权限

    [logs]
    FileName = "logs/diss-backend.log"
    MaxDays = 10
    MaxLines = 10000000
    MaxSize = 268435456
    Daily = true
    Level = 7
    Color = true


    [system]
    AdminUser = "admin"
    AdminPwd = "dissP@ssw0rd"
    Expire = 1
    LogoUrl = "logo"
    LogoPath = "upload/logo/"
    NewLogoName = "newcon.png"
    UploadPath = "/opt/diss-backend/"

    SystemCheckSpec = "0/15 * * * * ?"
    ClusterStatusCheckSpec = "0/15 * * * * ?"

    #分钟
    AgentHeartBeatTime = 1

    # ESAddress = 1.1.1.1,1.1.1.2
    [es]
    Address = http://114.67.110.120:9200,
    UserName = elastic
    Password = changeme


    # 索引名
    [security_log]
    BenchMarkIndex = security_log


    [k8s]
    KubeConfigPath = "upload/kubernetes/kubeconfig/"
    SyncSpec = "0 */1 * * * ?"
    ScopeYml = "upload/plugin/scope/diss-scope.yml"
    ScopeNameSpace = "weave"
    ScopeAppName = "weave-scope-app"

    [nats]
    Prefix = "nats://"
    Ip = "diss-nats-streaming"
    Port = 4222
    ClusterId = "diss-cluster"
    ClientId = "diss-server"
    Enable = true
    User = "diss"
    Pwd = "dissP@ssw0rd"


    [syslog]
    SyslogServer = "111.229.167.6:514"
    SyslogSyncSpec = "0 */10 * * * ?"


    [license]
    LicensePath = "upload/license/"
kind: ConfigMap
metadata:
  labels:
    origin: diss
    app: diss-backend
  name: diss-backend-app-conf
  namespace: diss