Categorygithub.com/ONSdigital/dp-frontend-router
modulepackage
1.88.0
Repository: https://github.com/onsdigital/dp-frontend-router.git
Documentation: pkg.go.dev

# README

dp-frontend-router

Configuration

Environment variableDefaultDescription
BIND_ADDR:20000The host and port to bind to.
HTTP_MAX_CONNECTIONS0Limit the number of concurrent http connections (0 = unlimited)
BABBAGE_URLhttps://localhost:8080The URL of the babbage instance to use
COOKIES_CONTROLLER_URLhttp://localhost:24100The URL of dp-frontend-cookie-controller
HOMEPAGE_CONTROLLER_URLhttp://localhost:24400The URL of dp-frontend-dataset-controller
DATASET_CONTROLLER_URLhttp://localhost:20200The URL of dp-frontend-dataset-controller
FILTER_DATASET_CONTROLLER_URLhttp://localhost:20001The URL of dp-frontend-filter-dataset-controller
FEEDBACK_CONTROLLER_URLhttp://localhost:25200The URL of dp-frontend-feedback-controller
SEARCH_CONTROLLER_URLhttp://localhost:25000The URL of dp-frontend-search-controller
DATA_AGGREGATION_PAGES_ENABLEDfalseEnables the new data aggregation pages
TOPIC_AGGREGATION_PAGES_ENABLEDfalseenables the topic data aggregation pages
SEARCH_ROUTES_ENABLEDfalseSearch routes feature toggle
API_ROUTER_URLhttp://localhost:23200/v1The API router URL
DOWNLOADER_URLhttp://localhost:23400The URL of dp-file-downloader.
PATTERN_LIBRARY_ASSETS_PATHhttps://cdn.ons.gov.uk/sixteens/e42235bThe URL to the sixteens build to use
SITE_DOMAINons.gov.ukThe domain hosting the site
REDIRECT_SECRETsecretPre-shared key for signing/encrypting redirect data
ANALYTICS_SQS_URLSQS URL for search analytics; leave blank to disable
CONTENT_TYPE_BYTE_LIMIT5000000 (5MB)Response size at which we stop checking content-type to avoid oom errors
HEALTHCHECK_INTERVAL30sThe period of time between health checks
HEALTHCHECK_CRITICAL_TIMEOUT90sThe period of time after which failing checks will result in critical global check
ZEBEDEE_REQUEST_TIMEOUT_SECONDS5sThe period of time to wait before timing out when communicating with Zebedee
ZEBEDEE_REQUEST_MAXIMUM_RETRIES0The number of retry attempts to make to Zebedee
PROXY_TIMEOUT5sThe write timeout for proxied requests
NEW_DATASET_ROUTING_ENABLEDfalseFlag to enable dataset page routing to dp-frontend-dataset-controller instead of babbage
DATASET_FINDER_ENABLEDfalseFlag to enabled routing to dataset finder page in search
OTEL_EXPORTER_OTLP_ENDPOINTlocalhost:4317Host and port for the OpenTelemetry endpoint
OTEL_SERVICE_NAMEdp-frontend-routerService name to report to telemetry tools
OTEL_BATCH_TIMEOUT5sInterval between pushes to OT Collector
OTEL_ENABLEDfalseFeature flag to enable OpenTelemetry
LEGACY_CACHE_PROXY_ENABLEDfalseFlag to enable requests to Babbage to go through the dp-legacy-cache-proxy instead.
LEGACY_CACHE_PROXY_URLhttp://localhost:29200The URL of dp-legacy-cache-proxy
RELEASE_CALENDAR_CONTROLLER_URLhttp://localhost:27700The URL of dp-frontend-release-calendar

Licence

Copyright © 2023, Office for National Statistics (https://www.ons.gov.uk)

Released under MIT license, see LICENSE for details

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

BuildTime represents the time in which the service was built.
GitCommit represents the commit (SHA-1) hash of the service that is running.
Version represents the version of the service that is running.