config.yaml 2.3 KB

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