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

# Include{replicas1}
# Include{podSpec}
# Include{containerMain}
# Include{containerBasic}
# Include{containerAdvanced}

  - variable: umami
    group: App Configuration
    label: Umami Configuration
    schema:
      additional_attrs: true
      type: dict
      attrs:
        - variable: force_ssl
          label: Force SSL
          description: This will redirect all requests from http to https in the Umami application. Note, this does not apply to the tracking script.
          schema:
            type: boolean
            default: true
        - variable: hostname
          label: Hostname
          description: Sets HOSTNAME environment variable
          schema:
            type: string
            default: ""
        - variable: client_ip_header
          label: Client IP Header
          description: HTTP header to check for the client's IP address. This is useful when you're behind a proxy that uses non-standard headers.
          schema:
            type: string
            default: ""
        - variable: remove_trailing_slash
          label: Remove Trailing Slash
          description: Removes the trailing slash from all incoming urls.
          schema:
            type: boolean
            default: true
        - variable: tracker_script_name
          label: Tracker Script Name
          description: Allows you to assign a custom name to the tracker script different from the default umami. This is to help you avoid some ad-blockers. (Requires update to tracking code on your website)
          schema:
            type: string
            default: "umami"
        - variable: collect_api_endpoint
          label: Collect API Endpoint
          description: Allows you to send metrics to a location different than the default. This is to help you avoid some ad-blockers.
          schema:
            type: string
            default: "/api/collect"
        - variable: disable_updates
          label: Disable Updates
          description: Disables the check for new versions of Umami.
          schema:
            type: boolean
            default: true
        - variable: disable_login
          label: Disable Login
          description: Disables the login page for the application.
          schema:
            type: boolean
            default: false
        - variable: disable_telemetry
          label: Disable Telemetry
          description: Umami collects completely anonymous telemetry data in order help improve the application. You can choose to disable this if you don't want to participate.
          schema:
            type: boolean
            default: false
        - variable: ignore_ip
          label: Ignore IP
          description: You can provide a list of IP address to exclude from data collection.
          schema:
            type: list
            default: []
            items:
              - variable: ipEntry
                label: IP Entry
                schema:
                  type: string
                  required: true
                  default: ""
# 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: 10381
                              required: true
# Include{serviceExpertRoot}
            default: false
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceList}
# Include{ingressRoot}
        - variable: main
          label: Main Ingress
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{ingressDefault}
# Include{ingressTLS}
# Include{ingressTraefik}
# Include{ingressList}
# Include{securityContextRoot}

        - variable: runAsUser
          label: runAsUser
          description: The UserID of the user running the application
          schema:
            type: int
            default: 1001
        - variable: runAsGroup
          label: runAsGroup
          description: The groupID this App of the user running the application
          schema:
            type: int
            default: 1001
# 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}
