config.yaml 2.2 KB

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