mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 05:29:38 -04:00
Instrument JS with copy/pasted snippet
this avoids having to set `unsafe-inline` in our CSP header
This commit is contained in:
@@ -28,6 +28,12 @@ class Config(object):
|
||||
BASIC_AUTH_USERNAME = getenv('BASIC_AUTH_USERNAME')
|
||||
BASIC_AUTH_PASSWORD = getenv('BASIC_AUTH_PASSWORD')
|
||||
|
||||
NR_ACCOUNT_ID = getenv('NR_ACCOUNT_ID')
|
||||
NR_TRUST_KEY = getenv('NR_TRUST_KEY')
|
||||
NR_AGENT_ID = getenv('NR_AGENT_ID')
|
||||
NR_APP_ID = getenv('NR_APP_ID')
|
||||
NR_BROWSER_KEY = getenv('NR_BROWSER_KEY')
|
||||
|
||||
TEMPLATE_PREVIEW_API_HOST = getenv('TEMPLATE_PREVIEW_API_HOST', 'http://localhost:9999')
|
||||
TEMPLATE_PREVIEW_API_KEY = getenv('TEMPLATE_PREVIEW_API_KEY', 'my-secret-key')
|
||||
|
||||
|
||||
@@ -7,9 +7,10 @@
|
||||
<html lang="{{ htmlLang | default('en') }}" class="govuk-template {{ htmlClasses }}">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>{% block pageTitle %}GOV.UK - The best place to find government services and information{% endblock %}</title>
|
||||
<title>{% block pageTitle %}U.S. Notify{% endblock %}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
||||
<meta name="theme-color" content="{{ themeColor | default('#0b0c0c') }}" /> {# Hardcoded value of $govuk-black #}
|
||||
{% include "partials/newrelic.html" -%}
|
||||
{# Ensure that older IE versions always render with the correct rendering engine #}
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
|
||||
|
||||
7
app/templates/partials/newrelic.html
Normal file
7
app/templates/partials/newrelic.html
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user