GloRep Deployment

  1. You need to have the glorep addon

  2. In configurator

    1. In global/config.yaml add in kyc this code

glorep: enabled: true image: <IMAGE_URL> glorep_url: "https://dev.glorep.com/" workflow_id: <GLOREP_WORKFLOW_ID> webhook_secret_key: <WEBHOOK_SECRET_KEY> secret_key: <SECRET_KEY_FOR_API>
  • IMAGE_URL - url to your image of a docker of the glorep service

  • GLOREP_WORKFLOW_ID - GloRep workflow id what you created on workflow page image-20240422-121249.png

  • WEBHOOK_SECRET_KEY - secret key for your webhook on page webhook image-20240422-121619.png

  • SECRET_KEY_FOR_API - secret key that was created to use the api. image-20240422-121906.png

b. in templates/compose/extensions.yaml.t add this code

{{#if kyc.glorep.enabled}} glorep: image: {{kyc.glorep.image}} restart: always env_file: - ../config/database.env - ../config/storage.env environment: BASE_URL: {{base_url}} GLOREP_URL: {{kyc.glorep.glorep_url}} WEBHOOK_SECRET_KEY: {{kyc.glorep.webhook_secret_key}} WORKFLOW_ID: {{kyc.glorep.workflow_id}} SECRET_KEY: {{kyc.glorep.secret_key}} depends_on: - nats - db {{#ifEquals components.jaeger.enabled true}} - jaeger {{/ifEquals}} {{#ifEquals mode "swarm"}} deploy: labels: - "traefik.http.routers.glorep.rule=Host(`{{base_url}}`) && PathPrefix(`/glorep`)" - "traefik.enable=true" - "traefik.http.services.glorep.loadbalancer.server.port=3000" {{#if components.traefik.ssl}} - "traefik.http.routers.glorep.entrypoints=websecure" - "traefik.http.routers.glorep.tls=true" - "traefik.http.routers.glorep.tls.certresolver=myresolver" - "traefik.http.routers.glorep.middlewares=secureheaders" {{else}} - "traefik.http.routers.glorep.entrypoints=web" {{/if}} {{/ifEquals}} {{#ifEquals mode "compose"}} labels: - "traefik.http.routers.glorep.rule=Host(`{{base_url}}`) && PathPrefix(`/glorep`)" - "traefik.enable=true" - "traefik.http.services.glorep.loadbalancer.server.port=3000" {{#if components.traefik.ssl}} - "traefik.http.routers.glorep.entrypoints=websecure" - "traefik.http.routers.glorep.tls=true" - "traefik.http.routers.glorep.tls.certresolver=myresolver" - "traefik.http.routers.glorep.middlewares=secureheaders" {{else}} - "traefik.http.routers.glorep.entrypoints=web" {{/if}} {{/ifEquals}} {{/if}}