summaryrefslogtreecommitdiffstats
path: root/src/utils/config.ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-02-15 22:14:03 +0100
committerArmand Philippot <git@armandphilippot.com>2022-02-15 22:25:12 +0100
commit9eae4703c97c50e82d959a3e0859fe1553889b15 (patch)
tree46605bbd1911ef370cc460d6710ad0ff87782e73 /src/utils/config.ts
parent4dc0005999c72b78d195bc05193926328030fe78 (diff)
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.
Diffstat (limited to 'src/utils/config.ts')
-rw-r--r--src/utils/config.ts4
1 files changed, 2 insertions, 2 deletions
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}`,
};