From 9eae4703c97c50e82d959a3e0859fe1553889b15 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Tue, 15 Feb 2022 22:14:03 +0100 Subject: feat: add HTTP security headers I also renamed and changed the format of some environment variables so I can reuse them inside the CSP security header. --- src/utils/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils/config.ts') diff --git a/src/utils/config.ts b/src/utils/config.ts index 07d42a3..86701fe 100644 --- a/src/utils/config.ts +++ b/src/utils/config.ts @@ -14,10 +14,10 @@ export const settings = { supported: ['en', 'fr'], }, matomo: { - urlBase: process.env.NEXT_PUBLIC_MATOMO_URL || '', + urlBase: `https://${process.env.NEXT_PUBLIC_MATOMO_DOMAIN}` || '', siteId: process.env.NEXT_PUBLIC_MATOMO_SITE_ID || '0', }, postsPerPage: 10, twitterId: '@ArmandPhilippot', - url: process.env.NEXT_PUBLIC_FRONTEND_URL, + url: `${process.env.NEXT_PUBLIC_APP_PROTOCOL}://${process.env.NEXT_PUBLIC_APP_DOMAIN}`, }; -- cgit v1.2.3