questions.yaml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  1. groups:
  2. - name: mitmproxy Configuration
  3. description: Configure mitmproxy
  4. - name: User and Group Configuration
  5. description: Configure User and Group for mitmproxy
  6. - name: Network Configuration
  7. description: Configure Network for mitmproxy
  8. - name: Storage Configuration
  9. description: Configure Storage for mitmproxy
  10. - name: Labels Configuration
  11. description: Configure Labels for mitmproxy
  12. - name: Resources Configuration
  13. description: Configure Resources for mitmproxy
  14. questions:
  15. - variable: TZ
  16. group: mitmproxy Configuration
  17. label: Timezone
  18. schema:
  19. type: string
  20. default: Etc/UTC
  21. required: true
  22. $ref:
  23. - definitions/timezone
  24. - variable: mitmproxy
  25. label: ""
  26. group: mitmproxy Configuration
  27. schema:
  28. type: dict
  29. attrs:
  30. - variable: additional_envs
  31. label: Additional Environment Variables
  32. schema:
  33. type: list
  34. default: []
  35. items:
  36. - variable: env
  37. label: Environment Variable
  38. schema:
  39. type: dict
  40. attrs:
  41. - variable: name
  42. label: Name
  43. schema:
  44. type: string
  45. required: true
  46. - variable: value
  47. label: Value
  48. schema:
  49. type: string
  50. - variable: run_as
  51. label: ""
  52. group: User and Group Configuration
  53. schema:
  54. type: dict
  55. attrs:
  56. - variable: user
  57. label: User ID
  58. description: The user id that mitmproxy files will be owned by.
  59. schema:
  60. type: int
  61. min: 568
  62. default: 568
  63. required: true
  64. - variable: group
  65. label: Group ID
  66. description: The group id that mitmproxy files will be owned by.
  67. schema:
  68. type: int
  69. min: 568
  70. default: 568
  71. required: true
  72. - variable: network
  73. label: ""
  74. group: Network Configuration
  75. schema:
  76. type: dict
  77. attrs:
  78. - variable: web_port
  79. label: WebUI Port
  80. schema:
  81. type: dict
  82. attrs:
  83. - variable: bind_mode
  84. label: Port Bind Mode
  85. description: |
  86. The port bind mode.</br>
  87. - Publish: The port will be published on the host for external access.</br>
  88. - Expose: The port will be exposed for inter-container communication.</br>
  89. - None: The port will not be exposed or published.</br>
  90. Note: If the Dockerfile defines an EXPOSE directive,
  91. the port will still be exposed for inter-container communication regardless of this setting.
  92. schema:
  93. type: string
  94. default: "published"
  95. enum:
  96. - value: "published"
  97. description: Publish port on the host for external access
  98. - value: "exposed"
  99. description: Expose port for inter-container communication
  100. - value: ""
  101. description: None
  102. - variable: port_number
  103. label: Port Number
  104. schema:
  105. type: int
  106. default: 30138
  107. min: 1
  108. max: 65535
  109. required: true
  110. - variable: host_ips
  111. label: Host IPs
  112. description: IPs on the host to bind this port
  113. schema:
  114. type: list
  115. show_if: [["bind_mode", "=", "published"]]
  116. default: []
  117. items:
  118. - variable: host_ip
  119. label: Host IP
  120. schema:
  121. type: string
  122. required: true
  123. $ref:
  124. - definitions/node_bind_ip
  125. - variable: proxy_port
  126. label: Proxy Port
  127. schema:
  128. type: dict
  129. attrs:
  130. - variable: bind_mode
  131. label: Port Bind Mode
  132. description: |
  133. The port bind mode.</br>
  134. - Publish: The port will be published on the host for external access.</br>
  135. - Expose: The port will be exposed for inter-container communication.</br>
  136. - None: The port will not be exposed or published.</br>
  137. Note: If the Dockerfile defines an EXPOSE directive,
  138. the port will still be exposed for inter-container communication regardless of this setting.
  139. schema:
  140. type: string
  141. default: "published"
  142. enum:
  143. - value: "published"
  144. description: Publish port on the host for external access
  145. - value: "exposed"
  146. description: Expose port for inter-container communication
  147. - value: ""
  148. description: None
  149. - variable: port_number
  150. label: Port Number
  151. schema:
  152. type: int
  153. default: 30139
  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: config
  186. label: mitmproxy Config Storage
  187. description: The path to store mitmproxy Config.
  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: "config"
  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: additional_storage
  262. label: Additional Storage
  263. schema:
  264. type: list
  265. default: []
  266. items:
  267. - variable: storageEntry
  268. label: Storage Entry
  269. schema:
  270. type: dict
  271. attrs:
  272. - variable: type
  273. label: Type
  274. description: |
  275. ixVolume: Is dataset created automatically by the system.</br>
  276. Host Path: Is a path that already exists on the system.</br>
  277. SMB Share: Is a SMB share that is mounted to as a volume.
  278. schema:
  279. type: string
  280. required: true
  281. default: "ix_volume"
  282. enum:
  283. - value: "host_path"
  284. description: Host Path (Path that already exists on the system)
  285. - value: "ix_volume"
  286. description: ixVolume (Dataset created automatically by the system)
  287. - value: "cifs"
  288. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  289. - variable: read_only
  290. label: Read Only
  291. description: Mount the volume as read only.
  292. schema:
  293. type: boolean
  294. default: false
  295. - variable: mount_path
  296. label: Mount Path
  297. description: The path inside the container to mount the storage.
  298. schema:
  299. type: path
  300. required: true
  301. - variable: host_path_config
  302. label: Host Path Configuration
  303. schema:
  304. type: dict
  305. show_if: [["type", "=", "host_path"]]
  306. attrs:
  307. - variable: acl_enable
  308. label: Enable ACL
  309. description: Enable ACL for the storage.
  310. schema:
  311. type: boolean
  312. default: false
  313. - variable: acl
  314. label: ACL Configuration
  315. schema:
  316. type: dict
  317. show_if: [["acl_enable", "=", true]]
  318. attrs: []
  319. $ref:
  320. - "normalize/acl"
  321. - variable: path
  322. label: Host Path
  323. description: The host path to use for storage.
  324. schema:
  325. type: hostpath
  326. show_if: [["acl_enable", "=", false]]
  327. required: true
  328. - variable: ix_volume_config
  329. label: ixVolume Configuration
  330. description: The configuration for the ixVolume dataset.
  331. schema:
  332. type: dict
  333. show_if: [["type", "=", "ix_volume"]]
  334. $ref:
  335. - "normalize/ix_volume"
  336. attrs:
  337. - variable: acl_enable
  338. label: Enable ACL
  339. description: Enable ACL for the storage.
  340. schema:
  341. type: boolean
  342. default: false
  343. - variable: dataset_name
  344. label: Dataset Name
  345. description: The name of the dataset to use for storage.
  346. schema:
  347. type: string
  348. required: true
  349. default: "storage_entry"
  350. - variable: acl_entries
  351. label: ACL Configuration
  352. schema:
  353. type: dict
  354. show_if: [["acl_enable", "=", true]]
  355. attrs: []
  356. $ref:
  357. - "normalize/acl"
  358. - variable: cifs_config
  359. label: SMB Configuration
  360. description: The configuration for the SMB dataset.
  361. schema:
  362. type: dict
  363. show_if: [["type", "=", "cifs"]]
  364. attrs:
  365. - variable: server
  366. label: Server
  367. description: The server to mount the SMB share.
  368. schema:
  369. type: string
  370. required: true
  371. - variable: path
  372. label: Path
  373. description: The path to mount the SMB share.
  374. schema:
  375. type: string
  376. required: true
  377. - variable: username
  378. label: Username
  379. description: The username to use for the SMB share.
  380. schema:
  381. type: string
  382. required: true
  383. - variable: password
  384. label: Password
  385. description: The password to use for the SMB share.
  386. schema:
  387. type: string
  388. required: true
  389. private: true
  390. - variable: domain
  391. label: Domain
  392. description: The domain to use for the SMB share.
  393. schema:
  394. type: string
  395. - variable: labels
  396. label: ""
  397. group: Labels Configuration
  398. schema:
  399. type: list
  400. default: []
  401. items:
  402. - variable: label
  403. label: Label
  404. schema:
  405. type: dict
  406. attrs:
  407. - variable: key
  408. label: Key
  409. schema:
  410. type: string
  411. required: true
  412. - variable: value
  413. label: Value
  414. schema:
  415. type: string
  416. required: true
  417. - variable: containers
  418. label: Containers
  419. description: Containers where the label should be applied
  420. schema:
  421. type: list
  422. items:
  423. - variable: container
  424. label: Container
  425. schema:
  426. type: string
  427. required: true
  428. enum:
  429. - value: mitmproxy
  430. description: mitmproxy
  431. - variable: resources
  432. label: ""
  433. group: Resources Configuration
  434. schema:
  435. type: dict
  436. attrs:
  437. - variable: limits
  438. label: Limits
  439. schema:
  440. type: dict
  441. attrs:
  442. - variable: cpus
  443. label: CPUs
  444. description: CPUs limit for mitmproxy.
  445. schema:
  446. type: int
  447. default: 2
  448. required: true
  449. - variable: memory
  450. label: Memory (in MB)
  451. description: Memory limit for mitmproxy.
  452. schema:
  453. type: int
  454. default: 4096
  455. required: true