config.yaml 2.4 KB

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