config.yaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. redis:
  44. addr: "127.0.0.1:6379"
  45. password: ""
  46. db: 0
  47. cache:
  48. type: "file"
  49. file-dir: "./runtime/cache"
  50. redis-addr: "127.0.0.1:6379"
  51. redis-pwd: ""
  52. redis-db: 0
  53. oss:
  54. access-key-id: ""
  55. access-key-secret: ""
  56. host: ""
  57. callback-url: ""
  58. expire-time: 30
  59. max-byte: 10240
  60. ldap:
  61. enable: false
  62. url: "ldap://ldap.example.com:389"
  63. tls: false
  64. tls-verify: false
  65. base-dn: "dc=example,dc=com"
  66. bind-dn: "cn=admin,dc=example,dc=com"
  67. bind-password: "password"
  68. user:
  69. base-dn: "ou=users,dc=example,dc=com"
  70. enable-attr: "" #The attribute name of the user for enabling, in AD it is "userAccountControl", empty means no enable attribute, all users are enabled
  71. 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.
  72. filter: "(cn=*)"
  73. username: "uid" # The attribute name of the user for usernamem if you are using AD, it should be "sAMAccountName"
  74. email: "mail"
  75. first-name: "givenName"
  76. last-name: "sn"
  77. 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.
  78. 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.