questions.yaml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. groups:
  2. - name: Electrs Configuration
  3. description: Configure Electrs
  4. - name: Network Configuration
  5. description: Configure Network for Electrs
  6. - name: Storage Configuration
  7. description: Configure Storage for Electrs
  8. - name: Labels Configuration
  9. description: Configure Labels for Electrs
  10. - name: Resources Configuration
  11. description: Configure Resources for Electrs
  12. questions:
  13. - variable: TZ
  14. group: Electrs Configuration
  15. label: Timezone
  16. schema:
  17. type: string
  18. default: Etc/UTC
  19. required: true
  20. $ref:
  21. - definitions/timezone
  22. - variable: electrs
  23. label: ""
  24. group: Electrs Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: use_installed_bitcoin_app
  29. label: Connect to Installed Bitcoin Node App
  30. description: |
  31. Enabling this option will attempt to connect to the installed Bitcoin Node TrueNAS app.
  32. Electrs won't work if your node is pruned.
  33. schema:
  34. type: boolean
  35. default: true
  36. - variable: external_bitcoind_ip
  37. label: External Bitcoin Node RPC IP
  38. schema:
  39. type: ipaddr
  40. required: true
  41. show_if: [["use_installed_bitcoin_app", "=", false]]
  42. - variable: bitcoind_p2p_port
  43. label: Bitcoin Node P2P Port
  44. schema:
  45. type: int
  46. min: 1
  47. max: 65535
  48. default: 8333
  49. required: true
  50. - variable: bitcoind_rpc_port
  51. label: Bitcoin Node RPC Port
  52. schema:
  53. type: int
  54. min: 1
  55. max: 65535
  56. default: 8332
  57. required: true
  58. - variable: bitcoind_rpc_user
  59. label: Bitcoin Node RPC User
  60. schema:
  61. type: string
  62. default: truenas
  63. required: true
  64. - variable: bitcoind_rpc_password
  65. label: Bitcoin Node RPC Password
  66. schema:
  67. type: string
  68. required: true
  69. - variable: additional_flags
  70. label: Additional flags
  71. description: |
  72. Additional commands can be provided here.
  73. If you are unsure, leave this blank.
  74. schema:
  75. type: list
  76. items:
  77. - variable: flag
  78. label: Flag
  79. schema:
  80. type: string
  81. required: true
  82. - variable: network
  83. label: ""
  84. group: Network Configuration
  85. schema:
  86. type: dict
  87. attrs:
  88. - variable: rpc_port
  89. label: RPC Port
  90. description: |
  91. This port can be used by other apps to communicate with Electrs.
  92. schema:
  93. type: dict
  94. attrs:
  95. - variable: bind_mode
  96. label: Port Bind Mode
  97. description: |
  98. The port bind mode.</br>
  99. - Publish: The port will be published on the host for external access.</br>
  100. - Expose: The port will be exposed for inter-container communication.</br>
  101. - None: The port will not be exposed or published.</br>
  102. Note: If the Dockerfile defines an EXPOSE directive,
  103. the port will still be exposed for inter-container communication regardless of this setting.
  104. schema:
  105. type: string
  106. default: "published"
  107. enum:
  108. - value: "published"
  109. description: Publish port on the host for external access
  110. - value: "exposed"
  111. description: Expose port for inter-container communication
  112. - value: ""
  113. description: None
  114. - variable: port_number
  115. label: Port Number
  116. schema:
  117. type: int
  118. default: 50001
  119. min: 1
  120. max: 65535
  121. required: true
  122. - variable: host_ips
  123. label: Host IPs
  124. description: IPs on the host to bind this port
  125. schema:
  126. type: list
  127. show_if: [["bind_mode", "=", "published"]]
  128. default: []
  129. items:
  130. - variable: host_ip
  131. label: Host IP
  132. schema:
  133. type: string
  134. required: true
  135. $ref:
  136. - definitions/node_bind_ip
  137. - variable: storage
  138. label: ""
  139. group: Storage Configuration
  140. schema:
  141. type: dict
  142. attrs:
  143. - variable: data
  144. label: Electrs Data Storage Location
  145. description: |
  146. We recommend at least 70GB of free space.
  147. schema:
  148. type: dict
  149. attrs:
  150. - variable: type
  151. label: Type
  152. description: |
  153. ixVolume: Is dataset created automatically by the system.</br>
  154. Host Path: Is a path that already exists on the system.
  155. schema:
  156. type: string
  157. required: true
  158. default: "ix_volume"
  159. enum:
  160. - value: "host_path"
  161. description: Host Path (Path that already exists on the system)
  162. - value: "ix_volume"
  163. description: ixVolume (Dataset created automatically by the system)
  164. - variable: ix_volume_config
  165. label: ixVolume Configuration
  166. description: The configuration for the ixVolume dataset.
  167. schema:
  168. type: dict
  169. show_if: [["type", "=", "ix_volume"]]
  170. $ref:
  171. - "normalize/ix_volume"
  172. attrs:
  173. - variable: acl_enable
  174. label: Enable ACL
  175. description: Enable ACL for the storage.
  176. schema:
  177. type: boolean
  178. default: false
  179. - variable: dataset_name
  180. label: Dataset Name
  181. description: The name of the dataset to use for storage.
  182. schema:
  183. type: string
  184. required: true
  185. hidden: true
  186. default: "data"
  187. - variable: acl_entries
  188. label: ACL Configuration
  189. schema:
  190. type: dict
  191. show_if: [["acl_enable", "=", true]]
  192. attrs: []
  193. - variable: host_path_config
  194. label: Host Path Configuration
  195. schema:
  196. type: dict
  197. show_if: [["type", "=", "host_path"]]
  198. attrs:
  199. - variable: acl_enable
  200. label: Enable ACL
  201. description: Enable ACL for the storage.
  202. schema:
  203. type: boolean
  204. default: false
  205. - variable: acl
  206. label: ACL Configuration
  207. schema:
  208. type: dict
  209. show_if: [["acl_enable", "=", true]]
  210. attrs: []
  211. $ref:
  212. - "normalize/acl"
  213. - variable: path
  214. label: Host Path
  215. description: The host path to use for storage.
  216. schema:
  217. type: hostpath
  218. show_if: [["acl_enable", "=", false]]
  219. required: true
  220. - variable: additional_storage
  221. label: Additional Storage
  222. schema:
  223. type: list
  224. default: []
  225. items:
  226. - variable: storageEntry
  227. label: Storage Entry
  228. schema:
  229. type: dict
  230. attrs:
  231. - variable: type
  232. label: Type
  233. description: |
  234. ixVolume: Is dataset created automatically by the system.</br>
  235. Host Path: Is a path that already exists on the system.</br>
  236. SMB Share: Is a SMB share that is mounted to as a volume.
  237. schema:
  238. type: string
  239. required: true
  240. default: "ix_volume"
  241. enum:
  242. - value: "host_path"
  243. description: Host Path (Path that already exists on the system)
  244. - value: "ix_volume"
  245. description: ixVolume (Dataset created automatically by the system)
  246. - value: "cifs"
  247. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  248. - variable: read_only
  249. label: Read Only
  250. description: Mount the volume as read only.
  251. schema:
  252. type: boolean
  253. default: false
  254. - variable: mount_path
  255. label: Mount Path
  256. description: The path inside the container to mount the storage.
  257. schema:
  258. type: path
  259. required: true
  260. - variable: host_path_config
  261. label: Host Path Configuration
  262. schema:
  263. type: dict
  264. show_if: [["type", "=", "host_path"]]
  265. attrs:
  266. - variable: acl_enable
  267. label: Enable ACL
  268. description: Enable ACL for the storage.
  269. schema:
  270. type: boolean
  271. default: false
  272. - variable: acl
  273. label: ACL Configuration
  274. schema:
  275. type: dict
  276. show_if: [["acl_enable", "=", true]]
  277. attrs: []
  278. $ref:
  279. - "normalize/acl"
  280. - variable: path
  281. label: Host Path
  282. description: The host path to use for storage.
  283. schema:
  284. type: hostpath
  285. show_if: [["acl_enable", "=", false]]
  286. required: true
  287. - variable: ix_volume_config
  288. label: ixVolume Configuration
  289. description: The configuration for the ixVolume dataset.
  290. schema:
  291. type: dict
  292. show_if: [["type", "=", "ix_volume"]]
  293. $ref:
  294. - "normalize/ix_volume"
  295. attrs:
  296. - variable: acl_enable
  297. label: Enable ACL
  298. description: Enable ACL for the storage.
  299. schema:
  300. type: boolean
  301. default: false
  302. - variable: dataset_name
  303. label: Dataset Name
  304. description: The name of the dataset to use for storage.
  305. schema:
  306. type: string
  307. required: true
  308. default: "storage_entry"
  309. - variable: acl_entries
  310. label: ACL Configuration
  311. schema:
  312. type: dict
  313. show_if: [["acl_enable", "=", true]]
  314. attrs: []
  315. $ref:
  316. - "normalize/acl"
  317. - variable: cifs_config
  318. label: SMB Configuration
  319. description: The configuration for the SMB dataset.
  320. schema:
  321. type: dict
  322. show_if: [["type", "=", "cifs"]]
  323. attrs:
  324. - variable: server
  325. label: Server
  326. description: The server to mount the SMB share.
  327. schema:
  328. type: string
  329. required: true
  330. - variable: path
  331. label: Path
  332. description: The path to mount the SMB share.
  333. schema:
  334. type: string
  335. required: true
  336. - variable: username
  337. label: Username
  338. description: The username to use for the SMB share.
  339. schema:
  340. type: string
  341. required: true
  342. - variable: password
  343. label: Password
  344. description: The password to use for the SMB share.
  345. schema:
  346. type: string
  347. required: true
  348. private: true
  349. - variable: domain
  350. label: Domain
  351. description: The domain to use for the SMB share.
  352. schema:
  353. type: string
  354. - variable: labels
  355. label: ""
  356. group: Labels Configuration
  357. schema:
  358. type: list
  359. default: []
  360. items:
  361. - variable: label
  362. label: Label
  363. schema:
  364. type: dict
  365. attrs:
  366. - variable: key
  367. label: Key
  368. schema:
  369. type: string
  370. required: true
  371. - variable: value
  372. label: Value
  373. schema:
  374. type: string
  375. required: true
  376. - variable: containers
  377. label: Containers
  378. description: Containers where the label should be applied
  379. schema:
  380. type: list
  381. items:
  382. - variable: container
  383. label: Container
  384. schema:
  385. type: string
  386. required: true
  387. enum:
  388. - value: electrs
  389. description: electrs
  390. - variable: resources
  391. label: ""
  392. group: Resources Configuration
  393. schema:
  394. type: dict
  395. attrs:
  396. - variable: limits
  397. label: Limits
  398. schema:
  399. type: dict
  400. attrs:
  401. - variable: cpus
  402. label: CPUs
  403. description: CPUs limit for Electrs.
  404. schema:
  405. type: int
  406. default: 2
  407. required: true
  408. - variable: memory
  409. label: Memory (in MB)
  410. description: Memory limit for Electrs.
  411. schema:
  412. type: int
  413. default: 4096
  414. required: true