config.yaml 2.3 KB

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