# Include{groups}
portals:
  open:
# Include{portalLink}
questions:
# Include{global}
# Include{workload}
# Include{workloadDeployment}

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

# Include{containerBasic}
# Include{containerAdvanced}
  - variable: gotify
    group: App Configuration
    label: Gotify Configuration
    schema:
      additional_attrs: true
      type: dict
      attrs:
        - variable: user
          label: Username (First install only)
          description: Sets the default admin user.
          schema:
            type: string
            default: ""
            required: true
        - variable: pass
          label: Password (First install only)
          description: Sets the default admin pass.
          schema:
            type: string
            default: ""
            required: true
            private: true
        - variable: registration
          label: Registration
          description: Enable / Disable user registration.
          schema:
            type: boolean
            default: true
        - variable: password_strength
          label: Password Strength
          description: The bcrypt password strength (higher = better but also slower).
          schema:
            type: int
            default: 10
        - variable: show_advanced
          label: Show Advanced Options
          description: Shows advanced options that should be changed only if you know what you are doing
          schema:
            type: boolean
            default: false
            show_subquestions_if: true
            subquestions:
              - variable: response_headers
                label: Response Headers
                description: Response headers are added to every response
                schema:
                  type: list
                  default: []
                  items:
                    - variable: response_header_entry
                      label: Response Header Entry
                      schema:
                        additional_attrs: true
                        type: dict
                        attrs:
                          - variable: key
                            label: Header Key
                            schema:
                              type: string
                              default: ""
                              required: true
                          - variable: value
                            label: Header Value
                            schema:
                              type: string
                              default: ""
                              required: true
              - variable: keep_alive_period_seconds
                label: Keep Alive Period Seconds
                description: Set the interval in which keepalive packets will be sent. 0 = use Go default (15s); -1 = disable keepalive; Only change this value if you know what you are doing.
                schema:
                  type: int
                  required: true
                  default: 0
        - variable: stream
          label: Stream
          schema:
            additional_attrs: true
            type: dict
            attrs:
              - variable: show_advanced
                label: Show Advanced Options
                description: Shows advanced options that should be changed only if you know what you are doing
                schema:
                  type: boolean
                  default: false
                  show_subquestions_if: true
                  subquestions:
                    - variable: ping_period_seconds
                      label: Ping Period Seconds
                      description: The interval in which websocket pings will be sent. Only change this value if you know what you are doing.
                      schema:
                        type: int
                        required: true
                        default: 45
                    - variable: allowed_origins
                      label: Allowed Origins
                      description: Allowed origins for websocket connections (Same Origin is always allowed, Default is Same Origin)
                      schema:
                        type: list
                        default: []
                        items:
                          - variable: allowed_origin_entry
                            label: Allowed Origin Entry
                            schema:
                              type: string
                              default: ""
                              required: true
        - variable: cors
          label: CORS
          schema:
            additional_attrs: true
            type: dict
            attrs:
              - variable: show_advanced
                label: Show Advanced Options
                description: Shows advanced options that should be changed only if you know what you are doing
                schema:
                  type: boolean
                  default: false
                  show_subquestions_if: true
                  subquestions:
                    - variable: allowed_origins
                      label: Allowed Origins
                      schema:
                        type: list
                        default: []
                        items:
                          - variable: allowed_origin_entry
                            label: Allowed Origin Entry
                            schema:
                              type: string
                              required: true
                              default: ""
                    - variable: allowed_methods
                      label: Allowed Methods
                      schema:
                        type: list
                        default: []
                        items:
                          - variable: allowed_method_entry
                            label: Allowed Method Entry
                            schema:
                              type: string
                              default: ""
                              required: true
                    - variable: allowed_headers
                      label: Allowed Headers
                      schema:
                        type: list
                        default: []
                        items:
                          - variable: allowed_header_entry
                            label: Allowed Header Entry
                            schema:
                              type: string
                              default: ""
                              required: true

# Include{containerConfig}
# Include{podOptions}
# 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: 10084
                              required: true
# Include{serviceExpertRoot}
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
        - variable: data
          label: App Data Storage
          description: Stores the Application Data.
          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 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}
