Files
mayfly-go/server/config.yml.example
2023-08-25 19:41:52 +08:00

55 lines
1.2 KiB
Plaintext
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:
# debug release test
model: release
port: 8888
cors: true
tls:
enable: false
key-file: ./default.key
cert-file: ./default.pem
# 机器终端操作回放文件存储路径
machine-rec-path: ./rec
jwt:
# jwt key不设置默认使用随机字符串
key:
# 过期时间单位分钟
expire-time: 1440
# 资源密码aes加密key
aes:
key: 1111111111111111
mysql:
# 自动升级数据库
auto-migration: false
host: mysql:3306
username: root
password: 111049
db-name: mayfly-go
config: charset=utf8&loc=Local&parseTime=true
max-idle-conns: 5
# 若同时部署多台机器则需要配置redis信息用于缓存权限码、验证码、公私钥等
# redis:
# host: localhost
# port: 6379
# password: 111049
# db: 0
log:
# 日志等级, trace, debug, info, warn, error, fatal
level: info
# file:
# path: ./
# name: mayfly-go.log
# ldap相关配置
ldap:
enabled: true
host: "ldap.example.com"
port: 389
baseDn: "ou=users,dc=example,dc=com"
bindDn: "cn=admin,dc=example,dc=com"
userFilter: "(&(objectClass=organizationalPerson)(uid=%s))"
bindPassword: "admin123."
fieldMapping:
identifier: "cn"
displayName: "displayName"
email: "mail"