# Include{groups}
portals:
  open:
# Include{portalLink}
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: MAIL_FROM_ADDRESS
                                        label: "MAIL_FROM_ADDRESS"
                                        description: "Mail from Address"
                                        schema:
                                          type: string
                                          default: ""
                                      - variable: MAIL_FROM_NAME
                                        label: "MAIL_FROM_NAME"
                                        description: "Mail from Name"
                                        schema:
                                          type: string
                                          default: ""
                                      - variable: MAIL_DRIVER
                                        label: "MAIL_DRIVER"
                                        description: "Mail Driver"
                                        schema:
                                          type: string
                                          default: "smtp"
                                          enum:
                                            - value: "smtp"
                                              description: "smtp"
                                            - value: "mailgun"
                                              description: "mailgun"
                                            - value: "sendmail"
                                              description: "sendmail"
                                            - value: "ses"
                                              description: "ses"
                                            - value: "postmark"
                                              description: "postmark"
                                            - value: "log"
                                              description: "log"
                                            - value: "array"
                                              description: "array"
                                      - variable: MAIL_HOST
                                        label: "MAIL_HOST"
                                        description: "Mail Host"
                                        schema:
                                          type: string
                                          default: ""
                                      - variable: MAIL_PORT
                                        label: "MAIL_PORT"
                                        description: "Mail Port"
                                        schema:
                                          type: int
                                      - variable: MAIL_USERNAME
                                        label: "MAIL_USERNAME"
                                        description: "Mail Username"
                                        schema:
                                          type: string
                                          default: ""
                                      - variable: MAIL_PASSWORD
                                        label: "MAIL_PASSWORD"
                                        description: "Mail Password"
                                        schema:
                                          type: string
                                          private: true
                                          default: ""
                                      - variable: MAIL_ENCRYPTION
                                        label: "MAIL_ENCRYPTION"
                                        description: "Mail Encryption"
                                        schema:
                                          type: string
                                          default: "tls"
                                      - variable: PUSHER_APP_ID
                                        label: "PUSHER_APP_ID"
                                        description: "Pusher App ID"
                                        schema:
                                          type: string
                                          default: ""
                                      - variable: PUSHER_APP_KEY
                                        label: "PUSHER_APP_KEY"
                                        description: "Pusher App Key"
                                        schema:
                                          type: string
                                          private: true
                                          default: ""
                                      - variable: PUSHER_APP_SECRET
                                        label: "PUSHER_APP_SECRET"
                                        description: "Pusher App Secret"
                                        schema:
                                          type: string
                                          private: true
                                          default: ""
                                      - variable: PUSHER_APP_CLUSTER
                                        label: "PUSHER_APP_CLUSTER"
                                        description: "Pusher App Cluster"
                                        schema:
                                          type: string
                                          default: "mt1"
                                      - variable: APP_URL
                                        label: "APP_URL"
                                        description: "Application URL eg. https://lychee.mydomain.com"
                                        schema:
                                          type: string
                                          default: "http://localhost"
                                      - variable: APP_DEBUG
                                        label: "APP_DEBUG"
                                        description: "Enables the debug info"
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: SECURITY_HEADER_HSTS_ENABLE
                                        label: "SECURITY_HEADER_HSTS_ENABLE"
                                        description: "Enables HSTS Headers"
                                        schema:
                                          type: boolean
                                          default: false
# Include{containerBasic}
# Include{containerAdvanced}
# 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: 10017
                              required: true
# Include{serviceExpertRoot}
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
        - variable: conf
          label: "App Config Storage"
          description: "Stores the Application Configuration."
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{persistenceBasic}
        - variable: sym
          label: "App sym Storage"
          description: "Stores the Application sym."
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{persistenceBasic}
        - variable: uploads
          label: "App Uploads Storage"
          description: "Stores the Application Uploads."
          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: 0
              - variable: runAsGroup
                label: "runAsGroup"
                description: "The groupID of the user running the application"
                schema:
                  type: int
                  default: 0
# 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}
