Git Product home page Git Product logo

openregister.route-service's Introduction

GOV.UK Registers route service

GOV.UK Registers collects usage data via Google Analytics. The route service is responsible for proxying traffic to the Registers application and sending data based on user requests to Google Analytics.

Requirements

The GOOGLE_ANALYTICS_TRACKING_ID environment variable will need to be defined in order for the metrics to be stored appropriately. It takes the form UA-00000000-0 and should be stored in the password store.

How to deploy

This route service is automatically deployed to GOV.UK PaaS. However, to manually deploy it to GOV.UK PaaS:

cf push

Enable the route service

Once the route service is deployed, we can tell the PaaS to route traffic through the service.

The following command will setup the configuration for the route service.

cf create-user-provided-service openregister-ga-route-service -r https://openregister-ga-route-service.cloudapps.digital

The following command will enable the route service to proxy traffic to the destination registers application.

cf bind-route-service cloudapps.digital openregister-ga-route-service --hostname <name of destination app>

Assuming everything went smoothly, the service should be in play and used for routing.

Troubleshoot

Configuration

Debug-level logging can be enabled for the route service by setting a DEBUG environment variable with a value of true. The Google Analytics URL can be overridden with the GOOGLE_ANALYTICS_URL environment variable.

Is the route service running?

Check the status of this app by running:

cf app google-analytics-reporter

Is the route service configured correctly?

Check if initial config is present.

cf service openregister-ga-route-service

Check if the correct routes are attached to the application.

cf routes

Still stuck?

There are people working hard on GOV.UK PaaS documentation, to deliver the best user experience possible. See if perhaps that documentation covers your problem.

openregister.route-service's People

Contributors

paroxp avatar vixus0 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.