questions.yaml 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724
  1. groups:
  2. - name: Terraria Configuration
  3. description: Configure Terraria
  4. - name: Network Configuration
  5. description: Configure Network for Terraria
  6. - name: Storage Configuration
  7. description: Configure Storage for Terraria
  8. - name: Labels Configuration
  9. description: Configure Labels for Terraria
  10. - name: Resources Configuration
  11. description: Configure Resources for Terraria
  12. questions:
  13. - variable: terraria
  14. label: ""
  15. group: Terraria Configuration
  16. schema:
  17. type: dict
  18. attrs:
  19. - variable: image_selector
  20. label: Image
  21. description: |
  22. Selects the image to use for the Terraria server.</br>
  23. TShock is a fork of the Terraria server that adds a number of features.</br>
  24. Vanilla is the original Terraria server. </br>
  25. Only applies to newly generated worlds.
  26. schema:
  27. type: string
  28. default: "image"
  29. immutable: true
  30. required: true
  31. enum:
  32. - value: "image"
  33. description: TShock Image
  34. - value: "vanilla_image"
  35. description: Vanilla Image
  36. - variable: world_name
  37. label: World Name
  38. description: |
  39. Sets the world's name.</br>
  40. Only applies to newly generated worlds.
  41. schema:
  42. type: string
  43. default: "world"
  44. valid_chars: "^[a-zA-Z0-9-]+$"
  45. valid_chars_error: World name must be [numbers, letters, and hyphens only]
  46. required: true
  47. immutable: true
  48. - variable: world_seed
  49. label: World Seed
  50. description: |
  51. Sets the world's seed.</br>
  52. Only applies to newly generated worlds.
  53. schema:
  54. type: string
  55. default: ""
  56. immutable: true
  57. - variable: world_evil
  58. label: World Evil
  59. description: |
  60. Sets the world's evil state.</br>
  61. Only applies to newly generated worlds.
  62. schema:
  63. type: string
  64. default: random
  65. required: true
  66. immutable: true
  67. enum:
  68. - value: random
  69. description: Random
  70. - value: corrupt
  71. description: Corrupt
  72. - value: crimson
  73. description: Crimson
  74. - variable: world_size
  75. label: World Size
  76. description: |
  77. Sets the world's size.</br>
  78. Only applies to newly generated worlds.
  79. schema:
  80. type: string
  81. default: small
  82. required: true
  83. immutable: true
  84. enum:
  85. - value: small
  86. description: Small (1)
  87. - value: medium
  88. description: Medium (2)
  89. - value: large
  90. description: Large (3)
  91. - variable: world_difficulty
  92. label: World Difficulty
  93. description: |
  94. Sets the world's difficulty.</br>
  95. Only applies to newly generated worlds.
  96. schema:
  97. type: string
  98. default: normal
  99. required: true
  100. immutable: true
  101. enum:
  102. - value: normal
  103. description: Normal (0)
  104. - value: expert
  105. description: Expert (1)
  106. - value: master
  107. description: Master (2)
  108. - value: journey
  109. description: Journey (3)
  110. - variable: max_players
  111. label: Maximum Players
  112. description: Starts the server with the given player count as the maximum.
  113. schema:
  114. type: int
  115. default: 8
  116. min: 1
  117. max: 255
  118. required: true
  119. - variable: password
  120. label: Server Password
  121. description: Sets the server password.
  122. schema:
  123. type: string
  124. private: true
  125. default: ""
  126. - variable: secure
  127. label: Secure Server
  128. description: Turns on the base game's "anti-spam" feature.
  129. schema:
  130. type: boolean
  131. default: false
  132. - variable: force_update
  133. label: Force Update
  134. description: |
  135. Forces the server to continue running, and not hibernating when no players are on. </br>
  136. This results in time passing, grass growing, and cpu running.
  137. schema:
  138. type: boolean
  139. default: false
  140. - variable: additional_args
  141. label: Additional Arguments
  142. description: |
  143. Configure additional arguments for Terraria. </br>
  144. Value is optional for flags like -heaptile </br>
  145. For example: </br>
  146. Key: -lang </br>
  147. Value: en-US
  148. schema:
  149. type: list
  150. default: []
  151. items:
  152. - variable: arg
  153. label: Argument
  154. schema:
  155. type: dict
  156. attrs:
  157. - variable: key
  158. label: Key
  159. schema:
  160. type: string
  161. required: true
  162. - variable: value
  163. label: Value
  164. schema:
  165. type: string
  166. - variable: additional_envs
  167. label: Additional Environment Variables
  168. schema:
  169. type: list
  170. default: []
  171. items:
  172. - variable: env
  173. label: Environment Variable
  174. schema:
  175. type: dict
  176. attrs:
  177. - variable: name
  178. label: Name
  179. schema:
  180. type: string
  181. required: true
  182. - variable: value
  183. label: Value
  184. schema:
  185. type: string
  186. - variable: network
  187. label: ""
  188. group: Network Configuration
  189. schema:
  190. type: dict
  191. attrs:
  192. - variable: server_port
  193. label: Server Port
  194. schema:
  195. type: dict
  196. attrs:
  197. - variable: bind_mode
  198. label: Port Bind Mode
  199. description: |
  200. The port bind mode.</br>
  201. - Publish: The port will be published on the host for external access.</br>
  202. - Expose: The port will be exposed for inter-container communication.</br>
  203. - None: The port will not be exposed or published.</br>
  204. Note: If the Dockerfile defines an EXPOSE directive,
  205. the port will still be exposed for inter-container communication regardless of this setting.
  206. schema:
  207. type: string
  208. default: ""
  209. enum:
  210. - value: "published"
  211. description: Publish port on the host for external access
  212. - value: "exposed"
  213. description: Expose port for inter-container communication
  214. - value: ""
  215. description: None
  216. - variable: port_number
  217. label: Port Number
  218. schema:
  219. type: int
  220. default: 30030
  221. min: 1
  222. max: 65535
  223. required: true
  224. - variable: host_ips
  225. label: Host IPs
  226. description: IPs on the host to bind this port
  227. schema:
  228. type: list
  229. show_if: [["bind_mode", "=", "published"]]
  230. default: []
  231. items:
  232. - variable: host_ip
  233. label: Host IP
  234. schema:
  235. type: string
  236. required: true
  237. $ref:
  238. - definitions/node_bind_ip
  239. - variable: tshock_api_port
  240. label: TShock API Port
  241. schema:
  242. type: dict
  243. attrs:
  244. - variable: bind_mode
  245. label: Port Bind Mode
  246. description: |
  247. The port bind mode.</br>
  248. - Publish: The port will be published on the host for external access.</br>
  249. - Expose: The port will be exposed for inter-container communication.</br>
  250. - None: The port will not be exposed or published.</br>
  251. Note: If the Dockerfile defines an EXPOSE directive,
  252. the port will still be exposed for inter-container communication regardless of this setting.
  253. schema:
  254. type: string
  255. default: ""
  256. enum:
  257. - value: "published"
  258. description: Publish port on the host for external access
  259. - value: "exposed"
  260. description: Expose port for inter-container communication
  261. - value: ""
  262. description: None
  263. - variable: port_number
  264. label: Port Number
  265. schema:
  266. type: int
  267. default: 31103
  268. min: 1
  269. max: 65535
  270. required: true
  271. - variable: host_ips
  272. label: Host IPs
  273. description: IPs on the host to bind this port
  274. schema:
  275. type: list
  276. show_if: [["bind_mode", "=", "published"]]
  277. default: []
  278. items:
  279. - variable: host_ip
  280. label: Host IP
  281. schema:
  282. type: string
  283. required: true
  284. $ref:
  285. - definitions/node_bind_ip
  286. - variable: host_network
  287. label: Host Network
  288. description: |
  289. Bind to the host network. It's recommended to keep this disabled.
  290. schema:
  291. type: boolean
  292. default: false
  293. - variable: storage
  294. label: ""
  295. group: Storage Configuration
  296. schema:
  297. type: dict
  298. attrs:
  299. - variable: config
  300. label: Terraria Config Storage
  301. description: The path to store Terraria Config.
  302. schema:
  303. type: dict
  304. attrs:
  305. - variable: type
  306. label: Type
  307. description: |
  308. ixVolume: Is dataset created automatically by the system.</br>
  309. Host Path: Is a path that already exists on the system.
  310. schema:
  311. type: string
  312. required: true
  313. default: "ix_volume"
  314. enum:
  315. - value: "host_path"
  316. description: Host Path (Path that already exists on the system)
  317. - value: "ix_volume"
  318. description: ixVolume (Dataset created automatically by the system)
  319. - variable: ix_volume_config
  320. label: ixVolume Configuration
  321. description: The configuration for the ixVolume dataset.
  322. schema:
  323. type: dict
  324. show_if: [["type", "=", "ix_volume"]]
  325. $ref:
  326. - "normalize/ix_volume"
  327. attrs:
  328. - variable: acl_enable
  329. label: Enable ACL
  330. description: Enable ACL for the storage.
  331. schema:
  332. type: boolean
  333. default: false
  334. - variable: dataset_name
  335. label: Dataset Name
  336. description: The name of the dataset to use for storage.
  337. schema:
  338. type: string
  339. required: true
  340. hidden: true
  341. default: "config"
  342. - variable: acl_entries
  343. label: ACL Configuration
  344. schema:
  345. type: dict
  346. show_if: [["acl_enable", "=", true]]
  347. attrs: []
  348. - variable: host_path_config
  349. label: Host Path Configuration
  350. schema:
  351. type: dict
  352. show_if: [["type", "=", "host_path"]]
  353. attrs:
  354. - variable: acl_enable
  355. label: Enable ACL
  356. description: Enable ACL for the storage.
  357. schema:
  358. type: boolean
  359. default: false
  360. - variable: acl
  361. label: ACL Configuration
  362. schema:
  363. type: dict
  364. show_if: [["acl_enable", "=", true]]
  365. attrs: []
  366. $ref:
  367. - "normalize/acl"
  368. - variable: path
  369. label: Host Path
  370. description: The host path to use for storage.
  371. schema:
  372. type: hostpath
  373. show_if: [["acl_enable", "=", false]]
  374. required: true
  375. - variable: world
  376. label: Terraria World Storage
  377. description: The path to store Terraria World.
  378. schema:
  379. type: dict
  380. attrs:
  381. - variable: type
  382. label: Type
  383. description: |
  384. ixVolume: Is dataset created automatically by the system.</br>
  385. Host Path: Is a path that already exists on the system.
  386. schema:
  387. type: string
  388. required: true
  389. default: "ix_volume"
  390. enum:
  391. - value: "host_path"
  392. description: Host Path (Path that already exists on the system)
  393. - value: "ix_volume"
  394. description: ixVolume (Dataset created automatically by the system)
  395. - variable: ix_volume_config
  396. label: ixVolume Configuration
  397. description: The configuration for the ixVolume dataset.
  398. schema:
  399. type: dict
  400. show_if: [["type", "=", "ix_volume"]]
  401. $ref:
  402. - "normalize/ix_volume"
  403. attrs:
  404. - variable: acl_enable
  405. label: Enable ACL
  406. description: Enable ACL for the storage.
  407. schema:
  408. type: boolean
  409. default: false
  410. - variable: dataset_name
  411. label: Dataset Name
  412. description: The name of the dataset to use for storage.
  413. schema:
  414. type: string
  415. required: true
  416. hidden: true
  417. default: "world"
  418. - variable: acl_entries
  419. label: ACL Configuration
  420. schema:
  421. type: dict
  422. show_if: [["acl_enable", "=", true]]
  423. attrs: []
  424. - variable: host_path_config
  425. label: Host Path Configuration
  426. schema:
  427. type: dict
  428. show_if: [["type", "=", "host_path"]]
  429. attrs:
  430. - variable: acl_enable
  431. label: Enable ACL
  432. description: Enable ACL for the storage.
  433. schema:
  434. type: boolean
  435. default: false
  436. - variable: acl
  437. label: ACL Configuration
  438. schema:
  439. type: dict
  440. show_if: [["acl_enable", "=", true]]
  441. attrs: []
  442. $ref:
  443. - "normalize/acl"
  444. - variable: path
  445. label: Host Path
  446. description: The host path to use for storage.
  447. schema:
  448. type: hostpath
  449. show_if: [["acl_enable", "=", false]]
  450. required: true
  451. - variable: plugins
  452. label: Terraria Plugins Storage
  453. description: The path to store Terraria Plugins.
  454. schema:
  455. type: dict
  456. attrs:
  457. - variable: type
  458. label: Type
  459. description: |
  460. ixVolume: Is dataset created automatically by the system.</br>
  461. Host Path: Is a path that already exists on the system.
  462. schema:
  463. type: string
  464. required: true
  465. default: "ix_volume"
  466. enum:
  467. - value: "host_path"
  468. description: Host Path (Path that already exists on the system)
  469. - value: "ix_volume"
  470. description: ixVolume (Dataset created automatically by the system)
  471. - variable: ix_volume_config
  472. label: ixVolume Configuration
  473. description: The configuration for the ixVolume dataset.
  474. schema:
  475. type: dict
  476. show_if: [["type", "=", "ix_volume"]]
  477. $ref:
  478. - "normalize/ix_volume"
  479. attrs:
  480. - variable: acl_enable
  481. label: Enable ACL
  482. description: Enable ACL for the storage.
  483. schema:
  484. type: boolean
  485. default: false
  486. - variable: dataset_name
  487. label: Dataset Name
  488. description: The name of the dataset to use for storage.
  489. schema:
  490. type: string
  491. required: true
  492. hidden: true
  493. default: "plugins"
  494. - variable: acl_entries
  495. label: ACL Configuration
  496. schema:
  497. type: dict
  498. show_if: [["acl_enable", "=", true]]
  499. attrs: []
  500. - variable: host_path_config
  501. label: Host Path Configuration
  502. schema:
  503. type: dict
  504. show_if: [["type", "=", "host_path"]]
  505. attrs:
  506. - variable: acl_enable
  507. label: Enable ACL
  508. description: Enable ACL for the storage.
  509. schema:
  510. type: boolean
  511. default: false
  512. - variable: acl
  513. label: ACL Configuration
  514. schema:
  515. type: dict
  516. show_if: [["acl_enable", "=", true]]
  517. attrs: []
  518. $ref:
  519. - "normalize/acl"
  520. - variable: path
  521. label: Host Path
  522. description: The host path to use for storage.
  523. schema:
  524. type: hostpath
  525. show_if: [["acl_enable", "=", false]]
  526. required: true
  527. - variable: additional_storage
  528. label: Additional Storage
  529. schema:
  530. type: list
  531. default: []
  532. items:
  533. - variable: storageEntry
  534. label: Storage Entry
  535. schema:
  536. type: dict
  537. attrs:
  538. - variable: type
  539. label: Type
  540. description: |
  541. ixVolume: Is dataset created automatically by the system.</br>
  542. Host Path: Is a path that already exists on the system.</br>
  543. SMB Share: Is a SMB share that is mounted to as a volume.
  544. schema:
  545. type: string
  546. required: true
  547. default: "ix_volume"
  548. enum:
  549. - value: "host_path"
  550. description: Host Path (Path that already exists on the system)
  551. - value: "ix_volume"
  552. description: ixVolume (Dataset created automatically by the system)
  553. - value: "cifs"
  554. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  555. - variable: read_only
  556. label: Read Only
  557. description: Mount the volume as read only.
  558. schema:
  559. type: boolean
  560. default: false
  561. - variable: mount_path
  562. label: Mount Path
  563. description: The path inside the container to mount the storage.
  564. schema:
  565. type: path
  566. required: true
  567. - variable: host_path_config
  568. label: Host Path Configuration
  569. schema:
  570. type: dict
  571. show_if: [["type", "=", "host_path"]]
  572. attrs:
  573. - variable: acl_enable
  574. label: Enable ACL
  575. description: Enable ACL for the storage.
  576. schema:
  577. type: boolean
  578. default: false
  579. - variable: acl
  580. label: ACL Configuration
  581. schema:
  582. type: dict
  583. show_if: [["acl_enable", "=", true]]
  584. attrs: []
  585. $ref:
  586. - "normalize/acl"
  587. - variable: path
  588. label: Host Path
  589. description: The host path to use for storage.
  590. schema:
  591. type: hostpath
  592. show_if: [["acl_enable", "=", false]]
  593. required: true
  594. - variable: ix_volume_config
  595. label: ixVolume Configuration
  596. description: The configuration for the ixVolume dataset.
  597. schema:
  598. type: dict
  599. show_if: [["type", "=", "ix_volume"]]
  600. $ref:
  601. - "normalize/ix_volume"
  602. attrs:
  603. - variable: acl_enable
  604. label: Enable ACL
  605. description: Enable ACL for the storage.
  606. schema:
  607. type: boolean
  608. default: false
  609. - variable: dataset_name
  610. label: Dataset Name
  611. description: The name of the dataset to use for storage.
  612. schema:
  613. type: string
  614. required: true
  615. default: "storage_entry"
  616. - variable: acl_entries
  617. label: ACL Configuration
  618. schema:
  619. type: dict
  620. show_if: [["acl_enable", "=", true]]
  621. attrs: []
  622. $ref:
  623. - "normalize/acl"
  624. - variable: cifs_config
  625. label: SMB Configuration
  626. description: The configuration for the SMB dataset.
  627. schema:
  628. type: dict
  629. show_if: [["type", "=", "cifs"]]
  630. attrs:
  631. - variable: server
  632. label: Server
  633. description: The server to mount the SMB share.
  634. schema:
  635. type: string
  636. required: true
  637. - variable: path
  638. label: Path
  639. description: The path to mount the SMB share.
  640. schema:
  641. type: string
  642. required: true
  643. - variable: username
  644. label: Username
  645. description: The username to use for the SMB share.
  646. schema:
  647. type: string
  648. required: true
  649. - variable: password
  650. label: Password
  651. description: The password to use for the SMB share.
  652. schema:
  653. type: string
  654. required: true
  655. private: true
  656. - variable: domain
  657. label: Domain
  658. description: The domain to use for the SMB share.
  659. schema:
  660. type: string
  661. - variable: labels
  662. label: ""
  663. group: Labels Configuration
  664. schema:
  665. type: list
  666. default: []
  667. items:
  668. - variable: label
  669. label: Label
  670. schema:
  671. type: dict
  672. attrs:
  673. - variable: key
  674. label: Key
  675. schema:
  676. type: string
  677. required: true
  678. - variable: value
  679. label: Value
  680. schema:
  681. type: string
  682. required: true
  683. - variable: containers
  684. label: Containers
  685. description: Containers where the label should be applied
  686. schema:
  687. type: list
  688. items:
  689. - variable: container
  690. label: Container
  691. schema:
  692. type: string
  693. required: true
  694. enum:
  695. - value: terraria
  696. description: terraria
  697. - variable: resources
  698. label: ""
  699. group: Resources Configuration
  700. schema:
  701. type: dict
  702. attrs:
  703. - variable: limits
  704. label: Limits
  705. schema:
  706. type: dict
  707. attrs:
  708. - variable: cpus
  709. label: CPUs
  710. description: CPUs limit for Terraria.
  711. schema:
  712. type: int
  713. default: 2
  714. required: true
  715. - variable: memory
  716. label: Memory (in MB)
  717. description: Memory limit for Terraria.
  718. schema:
  719. type: int
  720. default: 4096
  721. required: true