# 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: CRON_TOKEN
                                        label: "CRON_TOKEN (Generate this inside the app)"
                                        description: "Generate token inside the app and come back later to fill this."
                                        schema:
                                          type: string
                                          default: ""
                                      - variable: AWS_ACCESS_KEY_ID
                                        label: "AWS_ACCESS_KEY_ID"
                                        description: "AWS Access Key ID"
                                        schema:
                                          type: string
                                          default: ""
                                      - variable: AWS_SECRET_ACCESS_KEY
                                        label: "AWS_SECRET_ACCESS_KEY"
                                        description: "AWS Secret Access Key"
                                        schema:
                                          type: string
                                          default: ""
                                      - variable: AWS_DEFAULT_REGION
                                        label: "AWS_DEFAULT_REGION"
                                        description: "AWS Default Region"
                                        schema:
                                          type: string
                                          default: ""
                                      - variable: AWS_BUCKET
                                        label: "AWS_BUCKET"
                                        description: "AWS Bucket"
                                        schema:
                                          type: string
                                          default: ""
                                      - 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: string
                                          default: "587"
                                      - 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
                                          default: ""
                                      - variable: MAIL_ENCRYPTION
                                        label: "MAIL_ENCRYPTION"
                                        description: "Mail Encryption"
                                        schema:
                                          type: string
                                          default: "tls"
                                      - variable: APP_URL
                                        label: "APP_URL"
                                        description: "Application URL eg. https://linkace.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: BACKUP_ENABLED
                                        label: "BACKUP_ENABLED"
                                        description: "Enables backups"
                                        schema:
                                          type: boolean
                                          default: false
                                      - variable: BACKUP_DISK
                                        label: "BACKUP_DISK"
                                        description: "Backup destination"
                                        schema:
                                          type: string
                                          default: "local_backups"
                                          enum:
                                            - value: "local_backups"
                                              description: "local_backups"
                                            - value: "s3"
                                              description: "s3"
                                      - variable: BACKUP_MAX_SIZE
                                        label: "BACKUP_MAX_SIZE"
                                        description: "Max size of backup in MB"
                                        schema:
                                          type: int
                                          default: 512
# 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: 10160
                              required: true
# Include{serviceExpertRoot}
            default: false
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
        - variable: backups
          label: "App Backup Storage"
          description: "Stores the Application Backup."
          schema:
            additional_attrs: true
            type: dict
            attrs:
# Include{persistenceBasic}
        - variable: logs
          label: "App Logs Storage"
          description: "Stores the Application Logs."
          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: 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: 82

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