questions.yaml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610
  1. groups:
  2. - name: Fireshare Configuration
  3. description: Configure Fireshare
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Fireshare
  6. - name: Network Configuration
  7. description: Configure Network for Fireshare
  8. - name: Storage Configuration
  9. description: Configure Storage for Fireshare
  10. - name: Labels Configuration
  11. description: Configure Labels for Fireshare
  12. - name: Resources Configuration
  13. description: Configure Resources for Fireshare
  14. questions:
  15. - variable: TZ
  16. group: Fireshare Configuration
  17. label: Timezone
  18. schema:
  19. type: string
  20. default: Etc/UTC
  21. required: true
  22. $ref:
  23. - definitions/timezone
  24. - variable: fireshare
  25. label: ""
  26. group: Fireshare Configuration
  27. schema:
  28. type: dict
  29. attrs:
  30. - variable: admin_username
  31. label: Admin Username
  32. schema:
  33. type: string
  34. default: ""
  35. required: true
  36. - variable: admin_password
  37. label: Admin Password
  38. schema:
  39. type: string
  40. default: ""
  41. required: true
  42. private: true
  43. - variable: secret_key
  44. label: Secret Key
  45. schema:
  46. type: string
  47. default: ""
  48. required: true
  49. private: true
  50. - variable: minutes_between_video_scans
  51. label: Minutes Between Video Scans
  52. description: How often to scan for new videos
  53. schema:
  54. type: int
  55. default: 5
  56. min: 1
  57. required: true
  58. - variable: thumbnail_video_location
  59. label: Thumbnail Video Location
  60. description: Frame position for video thumbnails (0-100, where 50 is middle)
  61. schema:
  62. type: int
  63. default: 0
  64. min: 0
  65. max: 100
  66. required: true
  67. - variable: domain
  68. label: Domain
  69. description: |
  70. Domain where your instance is hosted
  71. (without http/https, e.g., v.fireshare.net)
  72. schema:
  73. type: string
  74. default: ""
  75. - variable: additional_envs
  76. label: Additional Environment Variables
  77. schema:
  78. type: list
  79. default: []
  80. items:
  81. - variable: env
  82. label: Environment Variable
  83. schema:
  84. type: dict
  85. attrs:
  86. - variable: name
  87. label: Name
  88. schema:
  89. type: string
  90. required: true
  91. - variable: value
  92. label: Value
  93. schema:
  94. type: string
  95. - variable: run_as
  96. label: ""
  97. group: User and Group Configuration
  98. schema:
  99. type: dict
  100. attrs:
  101. - variable: user
  102. label: User ID
  103. description: The user id that Fireshare files will be owned by.
  104. schema:
  105. type: int
  106. min: 568
  107. default: 568
  108. required: true
  109. - variable: group
  110. label: Group ID
  111. description: The group id that Fireshare files will be owned by.
  112. schema:
  113. type: int
  114. min: 568
  115. default: 568
  116. required: true
  117. - variable: network
  118. label: ""
  119. group: Network Configuration
  120. schema:
  121. type: dict
  122. attrs:
  123. - variable: web_port
  124. label: WebUI Port
  125. schema:
  126. type: dict
  127. show_if: [["host_network", "=", false]]
  128. attrs:
  129. - variable: bind_mode
  130. label: Port Bind Mode
  131. description: |
  132. The port bind mode.</br>
  133. - Publish: The port will be published on the host for external access.</br>
  134. - Expose: The port will be exposed for inter-container communication.</br>
  135. - None: The port will not be exposed or published.</br>
  136. Note: If the Dockerfile defines an EXPOSE directive,
  137. the port will still be exposed for inter-container communication regardless of this setting.
  138. schema:
  139. type: string
  140. default: "published"
  141. enum:
  142. - value: "published"
  143. description: Publish port on the host for external access
  144. - value: "exposed"
  145. description: Expose port for inter-container communication
  146. - value: ""
  147. description: None
  148. - variable: port_number
  149. label: Port Number
  150. schema:
  151. type: int
  152. default: 30175
  153. show_if: [["bind_mode", "=", "published"]]
  154. min: 1
  155. max: 65535
  156. required: true
  157. - variable: host_ips
  158. label: Host IPs
  159. description: IPs on the host to bind this port
  160. schema:
  161. type: list
  162. show_if: [["bind_mode", "=", "published"]]
  163. default: []
  164. items:
  165. - variable: host_ip
  166. label: Host IP
  167. schema:
  168. type: string
  169. required: true
  170. $ref:
  171. - definitions/node_bind_ip
  172. - variable: host_network
  173. label: Host Network
  174. description: |
  175. Bind to the host network. It's recommended to keep this disabled.
  176. schema:
  177. type: boolean
  178. default: false
  179. - variable: storage
  180. label: ""
  181. group: Storage Configuration
  182. schema:
  183. type: dict
  184. attrs:
  185. - variable: data
  186. label: Fireshare Data Storage
  187. description: The path to store Fireshare configuration and database.
  188. schema:
  189. type: dict
  190. attrs:
  191. - variable: type
  192. label: Type
  193. description: |
  194. ixVolume: Is dataset created automatically by the system.</br>
  195. Host Path: Is a path that already exists on the system.
  196. schema:
  197. type: string
  198. required: true
  199. default: "ix_volume"
  200. enum:
  201. - value: "host_path"
  202. description: Host Path (Path that already exists on the system)
  203. - value: "ix_volume"
  204. description: ixVolume (Dataset created automatically by the system)
  205. - variable: ix_volume_config
  206. label: ixVolume Configuration
  207. description: The configuration for the ixVolume dataset.
  208. schema:
  209. type: dict
  210. show_if: [["type", "=", "ix_volume"]]
  211. $ref:
  212. - "normalize/ix_volume"
  213. attrs:
  214. - variable: acl_enable
  215. label: Enable ACL
  216. description: Enable ACL for the storage.
  217. schema:
  218. type: boolean
  219. default: false
  220. - variable: dataset_name
  221. label: Dataset Name
  222. description: The name of the dataset to use for storage.
  223. schema:
  224. type: string
  225. required: true
  226. hidden: true
  227. default: "data"
  228. - variable: acl_entries
  229. label: ACL Configuration
  230. schema:
  231. type: dict
  232. show_if: [["acl_enable", "=", true]]
  233. attrs: []
  234. - variable: host_path_config
  235. label: Host Path Configuration
  236. schema:
  237. type: dict
  238. show_if: [["type", "=", "host_path"]]
  239. attrs:
  240. - variable: acl_enable
  241. label: Enable ACL
  242. description: Enable ACL for the storage.
  243. schema:
  244. type: boolean
  245. default: false
  246. - variable: acl
  247. label: ACL Configuration
  248. schema:
  249. type: dict
  250. show_if: [["acl_enable", "=", true]]
  251. attrs: []
  252. $ref:
  253. - "normalize/acl"
  254. - variable: path
  255. label: Host Path
  256. description: The host path to use for storage.
  257. schema:
  258. type: hostpath
  259. show_if: [["acl_enable", "=", false]]
  260. required: true
  261. - variable: processed
  262. label: Fireshare Processed Storage
  263. description: The path to store processed files.
  264. schema:
  265. type: dict
  266. attrs:
  267. - variable: type
  268. label: Type
  269. description: |
  270. ixVolume: Is dataset created automatically by the system.</br>
  271. Host Path: Is a path that already exists on the system.
  272. schema:
  273. type: string
  274. required: true
  275. default: "ix_volume"
  276. enum:
  277. - value: "host_path"
  278. description: Host Path (Path that already exists on the system)
  279. - value: "ix_volume"
  280. description: ixVolume (Dataset created automatically by the system)
  281. - variable: ix_volume_config
  282. label: ixVolume Configuration
  283. description: The configuration for the ixVolume dataset.
  284. schema:
  285. type: dict
  286. show_if: [["type", "=", "ix_volume"]]
  287. $ref:
  288. - "normalize/ix_volume"
  289. attrs:
  290. - variable: acl_enable
  291. label: Enable ACL
  292. description: Enable ACL for the storage.
  293. schema:
  294. type: boolean
  295. default: false
  296. - variable: dataset_name
  297. label: Dataset Name
  298. description: The name of the dataset to use for storage.
  299. schema:
  300. type: string
  301. required: true
  302. hidden: true
  303. default: "processed"
  304. - variable: acl_entries
  305. label: ACL Configuration
  306. schema:
  307. type: dict
  308. show_if: [["acl_enable", "=", true]]
  309. attrs: []
  310. - variable: host_path_config
  311. label: Host Path Configuration
  312. schema:
  313. type: dict
  314. show_if: [["type", "=", "host_path"]]
  315. attrs:
  316. - variable: acl_enable
  317. label: Enable ACL
  318. description: Enable ACL for the storage.
  319. schema:
  320. type: boolean
  321. default: false
  322. - variable: acl
  323. label: ACL Configuration
  324. schema:
  325. type: dict
  326. show_if: [["acl_enable", "=", true]]
  327. attrs: []
  328. $ref:
  329. - "normalize/acl"
  330. - variable: path
  331. label: Host Path
  332. description: The host path to use for storage.
  333. schema:
  334. type: hostpath
  335. show_if: [["acl_enable", "=", false]]
  336. required: true
  337. - variable: videos
  338. label: Fireshare Videos Storage
  339. description: The path to store video files.
  340. schema:
  341. type: dict
  342. attrs:
  343. - variable: type
  344. label: Type
  345. description: |
  346. ixVolume: Is dataset created automatically by the system.</br>
  347. Host Path: Is a path that already exists on the system.
  348. schema:
  349. type: string
  350. required: true
  351. default: "ix_volume"
  352. enum:
  353. - value: "host_path"
  354. description: Host Path (Path that already exists on the system)
  355. - value: "ix_volume"
  356. description: ixVolume (Dataset created automatically by the system)
  357. - variable: ix_volume_config
  358. label: ixVolume Configuration
  359. description: The configuration for the ixVolume dataset.
  360. schema:
  361. type: dict
  362. show_if: [["type", "=", "ix_volume"]]
  363. $ref:
  364. - "normalize/ix_volume"
  365. attrs:
  366. - variable: acl_enable
  367. label: Enable ACL
  368. description: Enable ACL for the storage.
  369. schema:
  370. type: boolean
  371. default: false
  372. - variable: dataset_name
  373. label: Dataset Name
  374. description: The name of the dataset to use for storage.
  375. schema:
  376. type: string
  377. required: true
  378. hidden: true
  379. default: "videos"
  380. - variable: acl_entries
  381. label: ACL Configuration
  382. schema:
  383. type: dict
  384. show_if: [["acl_enable", "=", true]]
  385. attrs: []
  386. - variable: host_path_config
  387. label: Host Path Configuration
  388. schema:
  389. type: dict
  390. show_if: [["type", "=", "host_path"]]
  391. attrs:
  392. - variable: acl_enable
  393. label: Enable ACL
  394. description: Enable ACL for the storage.
  395. schema:
  396. type: boolean
  397. default: false
  398. - variable: acl
  399. label: ACL Configuration
  400. schema:
  401. type: dict
  402. show_if: [["acl_enable", "=", true]]
  403. attrs: []
  404. $ref:
  405. - "normalize/acl"
  406. - variable: path
  407. label: Host Path
  408. description: The host path to use for storage.
  409. schema:
  410. type: hostpath
  411. show_if: [["acl_enable", "=", false]]
  412. required: true
  413. - variable: additional_storage
  414. label: Additional Storage
  415. schema:
  416. type: list
  417. default: []
  418. items:
  419. - variable: storageEntry
  420. label: Storage Entry
  421. schema:
  422. type: dict
  423. attrs:
  424. - variable: type
  425. label: Type
  426. description: |
  427. ixVolume: Is dataset created automatically by the system.</br>
  428. Host Path: Is a path that already exists on the system.</br>
  429. SMB Share: Is a SMB share that is mounted to as a volume.
  430. schema:
  431. type: string
  432. required: true
  433. default: "ix_volume"
  434. enum:
  435. - value: "host_path"
  436. description: Host Path (Path that already exists on the system)
  437. - value: "ix_volume"
  438. description: ixVolume (Dataset created automatically by the system)
  439. - value: "cifs"
  440. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  441. - variable: read_only
  442. label: Read Only
  443. description: Mount the volume as read only.
  444. schema:
  445. type: boolean
  446. default: false
  447. - variable: mount_path
  448. label: Mount Path
  449. description: The path inside the container to mount the storage.
  450. schema:
  451. type: path
  452. required: true
  453. - variable: host_path_config
  454. label: Host Path Configuration
  455. schema:
  456. type: dict
  457. show_if: [["type", "=", "host_path"]]
  458. attrs:
  459. - variable: acl_enable
  460. label: Enable ACL
  461. description: Enable ACL for the storage.
  462. schema:
  463. type: boolean
  464. default: false
  465. - variable: acl
  466. label: ACL Configuration
  467. schema:
  468. type: dict
  469. show_if: [["acl_enable", "=", true]]
  470. attrs: []
  471. $ref:
  472. - "normalize/acl"
  473. - variable: path
  474. label: Host Path
  475. description: The host path to use for storage.
  476. schema:
  477. type: hostpath
  478. show_if: [["acl_enable", "=", false]]
  479. required: true
  480. - variable: ix_volume_config
  481. label: ixVolume Configuration
  482. description: The configuration for the ixVolume dataset.
  483. schema:
  484. type: dict
  485. show_if: [["type", "=", "ix_volume"]]
  486. $ref:
  487. - "normalize/ix_volume"
  488. attrs:
  489. - variable: acl_enable
  490. label: Enable ACL
  491. description: Enable ACL for the storage.
  492. schema:
  493. type: boolean
  494. default: false
  495. - variable: dataset_name
  496. label: Dataset Name
  497. description: The name of the dataset to use for storage.
  498. schema:
  499. type: string
  500. required: true
  501. default: "storage_entry"
  502. - variable: acl_entries
  503. label: ACL Configuration
  504. schema:
  505. type: dict
  506. show_if: [["acl_enable", "=", true]]
  507. attrs: []
  508. - variable: cifs_config
  509. label: SMB Configuration
  510. description: The configuration for the SMB dataset.
  511. schema:
  512. type: dict
  513. show_if: [["type", "=", "cifs"]]
  514. attrs:
  515. - variable: server
  516. label: Server
  517. description: The server to mount the SMB share.
  518. schema:
  519. type: string
  520. required: true
  521. - variable: path
  522. label: Path
  523. description: The path to mount the SMB share.
  524. schema:
  525. type: string
  526. required: true
  527. - variable: username
  528. label: Username
  529. description: The username to use for the SMB share.
  530. schema:
  531. type: string
  532. required: true
  533. - variable: password
  534. label: Password
  535. description: The password to use for the SMB share.
  536. schema:
  537. type: string
  538. required: true
  539. private: true
  540. - variable: domain
  541. label: Domain
  542. description: The domain to use for the SMB share.
  543. schema:
  544. type: string
  545. - variable: labels
  546. label: ""
  547. group: Labels Configuration
  548. schema:
  549. type: list
  550. default: []
  551. items:
  552. - variable: label
  553. label: Label
  554. schema:
  555. type: dict
  556. attrs:
  557. - variable: key
  558. label: Key
  559. schema:
  560. type: string
  561. required: true
  562. - variable: value
  563. label: Value
  564. schema:
  565. type: string
  566. required: true
  567. - variable: containers
  568. label: Containers
  569. description: Containers where the label should be applied
  570. schema:
  571. type: list
  572. items:
  573. - variable: container
  574. label: Container
  575. schema:
  576. type: string
  577. required: true
  578. enum:
  579. - value: fireshare
  580. description: fireshare
  581. - variable: resources
  582. label: ""
  583. group: Resources Configuration
  584. schema:
  585. type: dict
  586. attrs:
  587. - variable: limits
  588. label: Limits
  589. schema:
  590. type: dict
  591. attrs:
  592. - variable: cpus
  593. label: CPUs
  594. description: CPUs limit for Fireshare.
  595. schema:
  596. type: int
  597. default: 4
  598. required: true
  599. - variable: memory
  600. label: Memory (in MB)
  601. description: Memory limit for Fireshare.
  602. schema:
  603. type: int
  604. default: 4096
  605. required: true