definition.yml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. title: 'SFTP'
  2. icon: '/_assets/icons/ultraviolet-nas.svg'
  3. banner: '/_assets/storage/ssh.jpg'
  4. description: 'Store files over a remote connection using the SSH File Transfer Protocol.'
  5. vendor: 'Wiki.js'
  6. website: 'https://js.wiki'
  7. assetDelivery:
  8. isStreamingSupported: false
  9. isDirectAccessSupported: false
  10. defaultStreamingEnabled: false
  11. defaultDirectAccessEnabled: false
  12. contentTypes:
  13. defaultTypesEnabled: ['pages', 'images', 'documents', 'others', 'large']
  14. defaultLargeThreshold: '5MB'
  15. versioning:
  16. isSupported: false
  17. defaultEnabled: false
  18. sync: false
  19. props:
  20. host:
  21. type: String
  22. title: Host
  23. default: ''
  24. hint: Hostname or IP of the remote SSH server.
  25. icon: dns
  26. order: 1
  27. port:
  28. type: Number
  29. title: Port
  30. default: 22
  31. hint: SSH port of the remote server.
  32. icon: ethernet-off
  33. order: 2
  34. authMode:
  35. type: String
  36. title: Authentication Method
  37. default: 'privateKey'
  38. hint: Whether to use Private Key or Password-based authentication. A private key is highly recommended for best security.
  39. icon: grand-master-key
  40. enum:
  41. - privateKey|Private Key
  42. - password|Password
  43. enumDisplay: buttons
  44. order: 3
  45. username:
  46. type: String
  47. title: Username
  48. default: ''
  49. hint: Username for authentication.
  50. icon: test-account
  51. order: 4
  52. privateKey:
  53. type: String
  54. title: Private Key Contents
  55. default: ''
  56. hint: Contents of the private key
  57. icon: key
  58. multiline: true
  59. sensitive: true
  60. order: 5
  61. if:
  62. - { key: 'authMode', eq: 'privateKey' }
  63. passphrase:
  64. type: String
  65. title: Private Key Passphrase
  66. default: ''
  67. hint: Passphrase if the private key is encrypted, leave empty otherwise
  68. icon: password
  69. sensitive: true
  70. order: 6
  71. if:
  72. - { key: 'authMode', eq: 'privateKey' }
  73. password:
  74. type: String
  75. title: Password
  76. default: ''
  77. hint: Password for authentication
  78. icon: password
  79. sensitive: true
  80. order: 6
  81. if:
  82. - { key: 'authMode', eq: 'password' }
  83. basePath:
  84. type: String
  85. title: Base Directory Path
  86. default: '/root/wiki'
  87. hint: Base directory where files will be transferred to. The path must already exists and be writable by the user.
  88. icon: symlink-directory
  89. actions:
  90. exportAll:
  91. label: Export All DB Assets to Remote
  92. hint: Output all content from the DB to the remote SSH server, overwriting any existing data. If you enabled SFTP after content was created or you temporarily disabled it, you'll want to execute this action to add the missing content.
  93. icon: this-way-up