# Include{groups}
portals:
  open:
# Include{portalLink}
  admin:
# Include{portalLink}
    path: "/ghost"
questions:
# Include{global}
# Include{workload}
# Include{workloadDeployment}

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

  # Docker specific env
  - variable: env
    group: "App Configuration"
    label: "Image Environment"
    schema:
      additional_attrs: true
      type: dict
      attrs:
        - variable: url
          label: "URL"
          description: "Enter the URL that is used to access your publication"
          schema:
            type: string
            default: "http://localhost:10166"
        - variable: imageOptimization__resize
          label: "Image Optimization: Resize"
          description: "Automatically process and compress"
          schema:
            type: boolean
            default: true
        - variable: imageOptimization__srcsets
          label: "Image Optimization: srcsets"
          description: "Image Optimization: srcsets"
          schema:
            type: boolean
            default: true
        - variable: compress
          label: "Compress"
          description: "Compress"
          schema:
            type: boolean
            default: true
        - variable: preloadHeaders
          label: "Preload Headers"
          description: "Preload Headers"
          schema:
            type: boolean
            default: false
        - variable: adminFrameProtection
          label: "Admin Frame Protection"
          description: "Admin Frame Protection"
          schema:
            type: boolean
            default: true
        - variable: sendWelcomeEmail
          label: "Send Welcome Email"
          description: "Send Welcome Email"
          schema:
            type: boolean
            default: true
        - variable: stripeDirect
          label: "Stripe Direct"
          description: "Stripe Direct"
          schema:
            type: boolean
            default: false
        - variable: enableStripePromoCodes
          label: "Enable Stripe Promo Codes"
          description: "Enable Stripe Promo Codes"
          schema:
            type: boolean
            default: false
        - variable: emailAnalytics
          label: "Email Analytics"
          description: "Email Analytics"
          schema:
            type: boolean
            default: true
        - variable: backgroundJobs__emailAnalytics
          label: "Background Jobs Email Analytics"
          description: "Background Jobs Email Analytics"
          schema:
            type: boolean
            default: true
        - variable: useMinFiles
          label: "useMinFiles"
          description: "Generate assets url with .min notation"
          schema:
            type: boolean
            default: true
        - variable: privacy__useTinfoil
          label: "Privacy: Use Tin Foil"
          description: "Turn privacy features on or off"
          schema:
            type: boolean
            default: false
            show_subquestions_if: false
            subquestions:
              - variable: privacy__useUpdateCheck
                label: "Privacy: Use Update Checks"
                description: "Enable Update Checks"
                schema:
                  type: boolean
                  default: true
              - variable: privacy__useGravatar
                label: "Privacy: Use Gravatar"
                description: "Enable Gravatar"
                schema:
                  type: boolean
                  default: true
              - variable: privacy__useRpcPing
                label: "Privacy: Use RPC Ping"
                description: "Enable RPC Pings"
                schema:
                  type: boolean
                  default: true
              - variable: privacy__useStructuredData
                label: "Privacy: Use Structured Data"
                description: "Enable Structured Data"
                schema:
                  type: boolean
                  default: true
        - variable: mailenabled
          label: "Mail Settings"
          schema:
            type: boolean
            default: false
            show_subquestions_if: true
            subquestions:
              - variable: mail__from
                label: "Mail: From Address"
                description: "From Address eg ('Ghost Admin' <support@example.com>)"
                schema:
                  type: string
                  default: ""
              - variable: mail__transport
                label: "Mail: Transport"
                description: "Transport"
                schema:
                  type: string
                  default: "SMTP"
              - variable: mail__options__service
                label: "Mail: Options - Service"
                description: "Service eg (Mailgun)"
                schema:
                  type: string
                  default: ""
              - variable: mail__options__port
                label: "Mail: Options - Port"
                description: "Port eg (587)"
                schema:
                  type: string
                  default: ""
              - variable: mail__options__secure
                label: "Mail: Options - Secure"
                description: "Enable Secure Mail"
                schema:
                  type: boolean
                  default: false
              - variable: mail__options__auth__user
                label: "Mail: Options - Auth - User"
                description: "Username for mail provider"
                schema:
                  type: string
                  default: ""
              - variable: mail__options__auth__pass
                label: "Mail: Options - Auth - Password"
                description: "Password for mail provider"
                schema:
                  type: string
                  private: true
                  default: ""
        - variable: integrationsenabled
          label: "Integration Settings"
          schema:
            type: boolean
            default: false
            show_subquestions_if: true
            subquestions:
              - variable: twitter__privateReadOnlyToken
                label: "Twitter: Private Read Only Token"
                description: "Twitter: Private Read Only Token"
                schema:
                  type: string
                  private: true
                  default: ""
              - variable: opensea__privateReadOnlyApiKey
                label: "Opensea: Private Read Only API Key"
                description: "Opensea: Private Read Only API Key"
                schema:
                  type: string
                  private: true
                  default: ""
              - variable: tenor__publicReadOnlyApiKey
                label: "Tenor: Private Read Only API Key"
                description: "Tenor: Private Read Only API Key"
                schema:
                  type: string
                  private: true
                  default: ""
              - variable: tenor__contentFilter
                label: "Tenor: Content Filter"
                description: "Tenor: Content Filter"
                schema:
                  type: string
                  default: "off"
                  enum:
                    - value: "off"
                      description: "off"
                    - value: "on"
                      description: "on"
# 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: 10166
                              required: true
# Include{serviceExpertRoot}
            default: false
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
        - variable: content
          label: "App Content Storage"
          description: "Stores the Application Content."
          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{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}
