# Include{groups}
portals:
  open:
# Include{portalLink}
    path: "/transmission/web/#files"
questions:
# Include{global}
# Include{workload}
# Include{workloadDeployment}

# Include{replicas1}
# Include{podSpec}
# Include{containerMain}

                                - variable: env
                                  group: "App Configuration"
                                  label: "Image Environment"
                                  schema:
                                    additional_attrs: true
                                    type: dict
                                    attrs:
                                      - variable: TRANSMISSION__RPC_USERNAME
                                        label: Transmission RPC Username
                                        schema:
                                          type: string
                                          default: ""
                                      - variable: TRANSMISSION__RPC_PASSWORD
                                        label: Transmission RPC Password
                                        schema:
                                          type: string
                                          private: true
                                          default: ""
                                      - variable: TRANSMISSION__ALT_SPEED_ENABLED
                                        label: Transmission Alt Speed Enabled
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: TRANSMISSION__ALT_SPEED_DOWN
                                        label: Transmission Alt Speed Down
                                        schema:
                                          type: int
                                          default: 50
                                      - variable: TRANSMISSION__ALT_SPEED_TIME_ENABLED
                                        label: Transmission Alt Speed Time Enabled
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: TRANSMISSION__ALT_SPEED_TIME_BEGIN
                                        label: Transmission Alt Speed Time Begin
                                        schema:
                                          type: int
                                          default: 540
                                      - variable: TRANSMISSION__ALT_SPEED_TIME_DAY
                                        label: Transmission Alt Speed Time Day
                                        schema:
                                          type: int
                                          default: 127
                                      - variable: TRANSMISSION__ALT_SPEED_TIME_END
                                        label: Transmission Alt Speed Time End
                                        schema:
                                          type: int
                                          default: 1020
                                      - variable: TRANSMISSION__ALT_SPEED_UP
                                        label: Transmission Alt Speed Up
                                        schema:
                                          type: int
                                          default: 50
                                      - variable: TRANSMISSION__BIND_ADDRESS_IPV4
                                        label: Transmission Bind Address IPv4
                                        schema:
                                          type: string
                                          default: "0.0.0.0"
                                      - variable: TRANSMISSION__BIND_ADDRESS_IPV6
                                        label: Transmission Bind Address IPv6
                                        schema:
                                          type: string
                                          default: "::"
                                      - variable: TRANSMISSION__BLOCKLIST_ENABLED
                                        label: Transmission BlockList Enabled
                                        schema:
                                          type: boolean
                                          default: true
                                      - variable: TRANSMISSION__BLOCKLIST_URL
                                        label: Transmission BlockList Url
                                        schema:
                                          type: string
                                          default: "https://github.com/Naunter/BT_BlockLists/releases/download/v.1/bt_blocklists.gz"
                                      - variable: TRANSMISSION__CACHE_SIZE_MB
                                        label: Transmission Cache Size MB
                                        schema:
                                          type: int
                                          default: 4
                                      - variable: TRANSMISSION__DHT_ENABLED
                                        label: Transmission DHT Enabled
                                        schema:
                                          type: boolean
                                          default: true
                                      - variable: TRANSMISSION__DOWNLOAD_DIR
                                        label: Transmission Download Dir
                                        schema:
                                          type: string
                                          default: "/downloads/complete"
                                      - variable: TRANSMISSION__INCOMPLETE_DIR_ENABLED
                                        label: TRANSMISSION__INCOMPLETE_DIR_ENABLED
                                        schema:
                                          type: boolean
                                          default: true
                                      - variable: TRANSMISSION__INCOMPLETE_DIR
                                        label: Transmission Incomplete Dir
                                        schema:
                                          type: string
                                          default: "/downloads/incomplete"
                                      - variable: TRANSMISSION__WATCH_DIR_ENABLED
                                        label: Transmission Watch Dir Enabled
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: TRANSMISSION__WATCH_DIR
                                        label: Transmission Watch Dir
                                        schema:
                                          type: string
                                          default: "/watch"
                                      - variable: TRANSMISSION__DOWNLOAD_QUEUE_ENABLED
                                        label: Transmission Download Queue Enabled
                                        schema:
                                          type: boolean
                                          default: true
                                      - variable: TRANSMISSION__DOWNLOAD_QUEUE_SIZE
                                        label: Transmission Download Queue Size
                                        schema:
                                          type: int
                                          default: 5
                                      - variable: TRANSMISSION__ENCRYPTION
                                        label: Transmission Encryption
                                        schema:
                                          type: int
                                          default: 1
                                      - variable: TRANSMISSION__IDLE_SEEDING_LIMIT_ENABLED
                                        label: Transmission Idle Seeding Limit
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: TRANSMISSION__IDLE_SEEDING_LIMIT
                                        label: Transmission Idle Seeding Limit
                                        schema:
                                          type: int
                                          default: 30
                                      - variable: TRANSMISSION__LPD_ENABLED
                                        label: Transmission LPD Enabled
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: TRANSMISSION__MESSAGE_LEVEL
                                        label: Transmission Message Level
                                        schema:
                                          type: int
                                          default: 2
                                      - variable: TRANSMISSION__PEER_CONGESTION_ALGORITHM
                                        label: Transmission Peer Congestion Algorithm
                                        schema:
                                          type: string
                                          default: ""
                                      - variable: TRANSMISSION__PEER_ID_TTL_HOURS
                                        label: Transmission Peer ID TTL Hours
                                        schema:
                                          type: int
                                          default: 6
                                      - variable: TRANSMISSION__PEER_LIMIT_GLOBAL
                                        label: Transmission Peer Limit GLobal
                                        schema:
                                          type: int
                                          default: 200
                                      - variable: TRANSMISSION__PEER_LIMIT_PER_TORRENT
                                        label: Transmission Peer Limit Per Torrent
                                        schema:
                                          type: int
                                          default: 50
                                      - variable: TRANSMISSION__PEER_SOCKET_TOS
                                        label: Transmission Peer Socket TOS
                                        schema:
                                          type: string
                                          default: "default"
                                      - variable: TRANSMISSION__PEX_ENABLED
                                        label: Transmission Pex Enabled
                                        schema:
                                          type: boolean
                                          default: true
                                      - variable: TRANSMISSION__PORT_FORWARDING_ENABLED
                                        label: Transmission Port Forwarding Enabled
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: TRANSMISSION__PREALLOCATION
                                        label: Transmission Preallocation
                                        schema:
                                          type: int
                                          default: 1
                                      - variable: TRANSMISSION__PREFETCH_ENABLED
                                        label: Transmission Prefetch Enabled
                                        schema:
                                          type: boolean
                                          default: true
                                      - variable: TRANSMISSION__QUEUE_STALLED_ENABLED
                                        label: Transmission Queue Stalled Enabled
                                        schema:
                                          type: boolean
                                          default: true
                                      - variable: TRANSMISSION__QUEUE_STALLED_MINUTES
                                        label: Transmission Queue Stalled Minutes
                                        schema:
                                          type: int
                                          default: 30
                                      - variable: TRANSMISSION__RATIO_LIMIT_ENABLED
                                        label: Transmission Ratio Limit Enabled
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: TRANSMISSION__RATIO_LIMIT
                                        label: Transmission Ratio Limit
                                        schema:
                                          type: int
                                          default: 2
                                      - variable: TRANSMISSION__RENAME_PARTIAL_FILES
                                        label: Transmission Rename Partial Files
                                        schema:
                                          type: boolean
                                          default: true
                                      - variable: TRANSMISSION__RPC_ENABLED
                                        label: Transmission RPC Enabled
                                        schema:
                                          type: boolean
                                          default: true
                                      - variable: TRANSMISSION__RPC_AUTHENTICATION_REQUIRED
                                        label: Transmission RPC Authentication Required
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: TRANSMISSION__RPC_BIND_ADDRESS
                                        label: Transmission RPC Bind Address
                                        schema:
                                          type: string
                                          default: "0.0.0.0"
                                      - variable: TRANSMISSION__RPC_HOST_WHITELIST_ENABLED
                                        label: Transmission RPC HostWhiteList Enabled
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: TRANSMISSION__RPC_HOST_WHITELIST
                                        label: Transmission RPC HostWhiteList
                                        schema:
                                          type: string
                                          default: ""
                                      - variable: TRANSMISSION__RPC_WHITELIST_ENABLED
                                        label: Transmission RPC WhiteList Enabled
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: TRANSMISSION__RPC_WHITELIST
                                        label: Transmission RPC WhiteList
                                        schema:
                                          type: string
                                          default: ""
                                      - variable: TRANSMISSION__SCRAPE_PAUSED_TORRENTS_ENABLED
                                        label: Transmission Scrape Paused Torrents Enabled
                                        schema:
                                          type: boolean
                                          default: true
                                      - variable: TRANSMISSION__SCRIPT_TORRENT_DONE_ENABLED
                                        label: Transmission Script Torrent Done Enabled
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: TRANSMISSION__SCRIPT_TORRENT_DONE_FILENAME
                                        label: Transmission Script Torrent Done File Name
                                        schema:
                                          type: string
                                          default: ""
                                      - variable: TRANSMISSION__SEED_QUEUE_ENABLED
                                        label: Transmission Seed Queue Enabled
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: TRANSMISSION__SEED_QUEUE_SIZE
                                        label: Transmission Seed Queue Size
                                        schema:
                                          type: int
                                          default: 10
                                      - variable: TRANSMISSION__SPEED_LIMIT_DOWN_ENABLED
                                        label: Transmission Speed Limit Down Enabled
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: TRANSMISSION__SPEED_LIMIT_DOWN
                                        label: Transmission Speed Limit Down
                                        schema:
                                          type: int
                                          default: 100
                                      - variable: TRANSMISSION__SPEED_LIMIT_UP_ENABLED
                                        label: Transmission Speed Limit Up Enabled
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: TRANSMISSION__SPEED_LIMIT_UP
                                        label: Transmission Speed Limit Up
                                        schema:
                                          type: int
                                          default: 100
                                      - variable: TRANSMISSION__START_ADDED_TORRENTS
                                        label: Transmission Start Added Torrents
                                        schema:
                                          type: boolean
                                          default: true
                                      - variable: TRANSMISSION__TRASH_ORIGINAL_TORRENT_FILES
                                        label: Transmission Trash Original Torrent Files
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: TRANSMISSION__UMASK
                                        label: Transmission Umask
                                        schema:
                                          type: int
                                          default: 2
                                      - variable: TRANSMISSION__UPLOAD_SLOTS_PER_TORRENT
                                        label: Transmission Upload SLots per Torrent
                                        schema:
                                          type: int
                                          default: 14
                                      - variable: TRANSMISSION__UTP_ENABLED
                                        label: Transmission UTP Enabled
                                        schema:
                                          type: boolean
                                          default: true

# Include{containerBasic}
# Include{containerAdvanced}

# Include{containerConfig}
# Include{serviceRoot}
        - variable: main
          label: "Main Service"
          description: "The Primary service on which the healthcheck runs, often the webUI"
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras}
                    - variable: main
                      label: "Main Service Port Configuration"
                      schema:
                        additional_attrs: true
                        type: dict
                        attrs:
                          - variable: port
                            label: "Port"
                            description: "This port exposes the container port on the service"
                            schema:
                              type: int
                              default: 10109
                              required: true
        - variable: torrent
          label: "Torrent Service"
          description: "Torrent service"
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras}
                    - variable: torrent
                      label: "TCP Service Port Configuration"
                      schema:
                        additional_attrs: true
                        type: dict
                        attrs:
                          - variable: port
                            label: "Port"
                            description: "This port exposes the container port on the service"
                            schema:
                              type: int
                              default: 51414
                              required: true
# Include{serviceExpertRoot}
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
        - variable: config
          label: "App Config Storage"
          description: "Stores the Application Configuration."
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{persistenceBasic}
# Include{persistenceList}
# Include{ingressRoot}
        - variable: main
          label: "Main Ingress"
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{ingressDefault}
# Include{ingressTLS}
# Include{ingressTraefik}
# Include{ingressAdvanced}
# Include{ingressList}
# Include{securityContextRoot}

              - variable: runAsUser
                label: "runAsUser"
                description: "The UserID of the user running the application"
                schema:
                  type: int
                  default: 568
              - variable: runAsGroup
                label: "runAsGroup"
                description: "The groupID this App of the user running the application"
                schema:
                  type: int
                  default: 568
# Include{securityContextContainer}
# Include{securityContextAdvanced}
# Include{securityContextPod}
              - variable: fsGroup
                label: "fsGroup"
                description: "The group that should own ALL storage."
                schema:
                  type: int
                  default: 568

# Include{resources}
# Include{advanced}
# Include{addons}
# Include{codeserver}
# Include{netshoot}
# Include{vpn}
# Include{documentation}
