config.yaml 2.4 KB

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