Categorygithub.com/ONSdigital/dp-frontend-feedback-controller

# README

dp-frontend-feedback-controller

To allow users to provide feedback about the ONS website

Getting started

  • Run make debug

Dependencies

  • No further dependencies other than those defined in go.mod

Configuration

Environment variableDefaultDescription
API_ROUTER_URLhttp://localhost:23200/v1The URL of the dp-api-router
BIND_ADDRlocalhost:25200The host and port to bind to
CENSUS_TOPIC_ID4445The census topic id
DEBUGfalseEnable debug mode
ENABLE_CENSUS_TOPIC_SUBSECTIONfalseEnable census topic subsection
ENABLE_NEW_NAVBARfalseEnable new navigation bar
GRACEFUL_SHUTDOWN_TIMEOUT5sThe graceful shutdown timeout in seconds (time.Duration format)
HEALTHCHECK_INTERVAL30sTime between self-healthchecks (time.Duration format)
HEALTHCHECK_CRITICAL_TIMEOUT90sTime to wait until an unhealthy dependent propagates its state to make this app unhealthy (time.Duration format)
MAIL_HOST""The host for the mail server.
MAIL_PORT""The port for the mail server.
MAIL_USER""A user on the mail server.
MAIL_PASSWORD""The password for the mail server user.
FEEDBACK_TO""Receiver email address for feedback.
FEEDBACK_FROM""Sender email address for feedback.
IS_PUBLISHING_MODEfalse
PATTERN_LIBRARY_ASSETS_PATH""Pattern library location
SERVICE_AUTH_TOKEN""Service authorisation token
SITE_DOMAINlocalhost
SUPPORTED_LANGUAGES[]string{"en", "cy"}Supported languages
OTEL_EXPORTER_OTLP_ENDPOINTlocalhost:4317Endpoint for OpenTelemetry service
OTEL_SERVICE_NAMEdp-frontend-feedback-controllerLabel of service for OpenTelemetry service
OTEL_BATCH_TIMEOUT5sTimeout for OpenTelemetry
OTEL_ENABLEDfalseFeature flag to enable OpenTelemetry

Contributing

See CONTRIBUTING for details.

License

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

Released under MIT license, see LICENSE for details.

# Packages

assets in locale and templates folders are converted into Go source code with go-bindata the data.go file in this package is auto generated through the generate-dev and generate-prod tasks in the Makefile.
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.