config.yaml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. lang: "zh-CN"
  2. app:
  3. web-client: 1 # 1:启用 0:禁用
  4. register: false #是否开启注册
  5. register-status: 1 # 注册用户默认状态 1:启用 2:禁用
  6. captcha-threshold: 3 # <0:disabled, 0 always, >0:enabled
  7. ban-threshold: 0 # 0:disabled, >0:enabled
  8. show-swagger: 0 # 1:启用 0:禁用
  9. token-expire: 168h
  10. web-sso: true #web auth sso
  11. disable-pwd-login: false #禁用密码登录
  12. admin:
  13. title: "RustDesk Api Admin"
  14. hello-file: "./conf/admin/hello.html" #优先使用file
  15. hello: ""
  16. gin:
  17. api-addr: "0.0.0.0:21114"
  18. mode: "release" #release,debug,test
  19. resources-path: 'resources' #对外静态文件目录
  20. trust-proxy: ""
  21. gorm:
  22. type: "sqlite"
  23. max-idle-conns: 10
  24. max-open-conns: 100
  25. mysql:
  26. username: ""
  27. password: ""
  28. addr: ""
  29. dbname: ""
  30. rustdesk:
  31. id-server: "192.168.1.66:21116"
  32. relay-server: "192.168.1.66:21117"
  33. api-server: "http://127.0.0.1:21114"
  34. key: ""
  35. key-file: "/data/id_ed25519.pub"
  36. personal: 1
  37. webclient-magic-queryonline: 0
  38. ws-host: "" #eg: wss://192.168.1.3:4443
  39. logger:
  40. path: "./runtime/log.txt"
  41. level: "info" #trace,debug,info,warn,error,fatal
  42. report-caller: true
  43. proxy:
  44. enable: false
  45. host: "http://127.0.0.1:1080"
  46. jwt:
  47. key: ""
  48. expire-duration: 168h
  49. ldap:
  50. enable: false
  51. url: "ldap://ldap.example.com:389"
  52. tls-ca-file: ""
  53. tls-verify: false
  54. base-dn: "dc=example,dc=com"
  55. bind-dn: "cn=admin,dc=example,dc=com"
  56. bind-password: "password"
  57. user:
  58. base-dn: "ou=users,dc=example,dc=com"
  59. enable-attr: "" #The attribute name of the user for enabling, in AD it is "userAccountControl", empty means no enable attribute, all users are enabled
  60. enable-attr-value: "" # The value of the enable attribute when the user is enabled. If you are using AD, just set random value, it will be ignored.
  61. filter: "(cn=*)"
  62. username: "uid" # The attribute name of the user for usernamem if you are using AD, it should be "sAMAccountName"
  63. email: "mail"
  64. first-name: "givenName"
  65. last-name: "sn"
  66. sync: false # If true, the user will be synchronized to the database when the user logs in. If false, the user will be synchronized to the database when the user be created.
  67. admin-group: "cn=admin,dc=example,dc=com" # The group name of the admin group, if the user is in this group, the user will be an admin.