# Please read every variable and replace with appropriate value
# For details of variable meanings, please see https://docs.huddo.com/boards/cp/

global:
  repository: <name_of_your_Docker_Registry:port>/connections
  imageTag: 20191120-214007
  imagePullSecret: myregkey
  env:
    APP_URI: https://[BOARDS_URL]
    API_GATEWAY: https://[CONNECTIONS_URL]/api-boards

minio:
  useDockerHub: true
  nfs:
    server: 192.168.0.0

webfront:
  ingress:
    # This hostname must match other Ingresses defined in your CP environment
    # If all ingresses start with * you must match the pattern, or all traffic will be routed to Boards and everything will break
    # kubectl get ingresses --all-namespaces
    hosts:
      - "*.example.com"

core:
  env:
    NOTIFIER_EMAIL_HOST: smtp.example.com
    NOTIFIER_EMAIL_USERNAME: user123
    NOTIFIER_EMAIL_PASSWORD: passw0rd
    # APP_NAME: Huddo Boards # Used for all notifications, e.g. Orient Me
    # NOTIFIER_EMAIL_FROM_NAME: Huddo Boards
    # NOTIFIER_EMAIL_FROM_EMAIL: boards@connections.example.com
  ingress:
    # This hostname must match other Ingresses defined in your CP environment
    # If all ingresses start with * you must match the pattern, or all traffic will be routed to Boards and everything will break
    # kubectl get ingresses --all-namespaces
    hosts:
      - "*.example.com"

licence:
  env:
    # Register your Organisation and download your Free 'Activities Plus' licence key from store.huddo.com
    LICENCE: [LICENCE_STRING_FROM_HUDDO_STORE]

# https://docs.huddo.com/boards/msgraph/teams/on-prem/
# Uncomment/configure the following 3 lines if you are using this Huddo Boards deployment from Microsoft Teams
# provider:
#   env:
#     MSGRAPH_TEAMS_MANIFEST_ID: "<id attribute from your teams app manifest.json>"

user:
  env:
    # CONNECTIONS_NAME: HCL Connections
    CONNECTIONS_CLIENT_ID: huddoboards
    CONNECTIONS_URL: https://[CONNECTIONS_URL]
    CONNECTIONS_CLIENT_SECRET: [CLIENT_SECRET]
    CONNECTIONS_ADMINS: '["<ADMIN_EMAIL>"]'

# This section is for deploying the optional Activity Migration chart
# Please see doc at https://docs.huddo.com/boards/cp/migration/
migration:
  # configure access to the Connections Shared mount
  sharedDrive:
    # Replace with IP address for the NFS server
    server: 192.168.10.1
    # for example "/opt/HCL/Connections/data/shared" or "/nfs/data/shared"
    path: /nfs/data/shared
  # resources:
  #   requests:
  #     memory: 2048M
  #   limits:
  #     memory: 8192M
  env:
    # NODE_OPTIONS: '--max-old-space-size=6144'
    # https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
    TZ: Europe/London

    # this can be found in the WebSphere ACTIVITIES_CONTENT_DIR variable
    FILE_PATH_ACTIVITIES_CONTENT_STORE: /data/activities/content

    CONNECTIONS_ACTIVITIES_ADMIN_USERNAME: [ADMIN_USER]
    CONNECTIONS_ACTIVITIES_ADMIN_PASSWORD: [ADMIN_PASSWORD]
    CONNECTIONS_DB_HOST: [DB_SERVER]
    CONNECTIONS_DB_USER: db2inst1
    CONNECTIONS_DB_PASSWORD: [DB_PASSWORD]

    # -------- DB2 variables ------------
    CONNECTIONS_DB_TYPE: db2
    CONNECTIONS_DB_PORT: 50000
    # Connection string is built from other variables:
    # CONNECTIONS_DB_CONNECT_STRING: HOSTNAME=${host};PORT=${port};PROTOCOL=TCPIP;UID=${user};PWD=${password};CHARSET=UTF8;

    # -------- Microsoft variables -------
    # CONNECTIONS_DB_TYPE: mssql
    # CONNECTIONS_DB_PORT: 1433
    # CONNECTIONS_DB_DOMAIN: domain

    # -------- Oracle variables ----------
    # CONNECTIONS_DB_TYPE: oracle
    # CONNECTIONS_DB_PORT: 1531
    # CONNECTIONS_DB_SID: DATABASE
    # Connection string is built from other variables:
    # CONNECTIONS_DB_CONNECT_STRING: ${host}:${port}/${sid}

    # -------- Other options -------------
    # PROCESSING_PAGE_SIZE: 10
    # PROCESSING_LOG_EVERY: 50
    # FIELDS_PAGE_SIZE: 3
    # FIELDS_LOG_EVERY: 50
    # NODES_PAGE_SIZE: 50
    # IMMEDIATELY_PROCESS_ALL: "false"
    # COMPLETE_ACTIVITY_AFTER_MIGRATED: "false"
    # CREATE_LINK_IN_ACTIVITY_AFTER_MIGRATED: "false"
    # PURGE_INCOMPLETE: "true"
    # PURGE_MIGRATED_ACTIVITY_IDS: "acitivityId,activityId2,activityId3,...,activityIdN"
