diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-02-15 22:14:03 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-02-15 22:25:12 +0100 |
| commit | 9eae4703c97c50e82d959a3e0859fe1553889b15 (patch) | |
| tree | 46605bbd1911ef370cc460d6710ad0ff87782e73 /.env.example | |
| parent | 4dc0005999c72b78d195bc05193926328030fe78 (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 '.env.example')
| -rw-r--r-- | .env.example | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/.env.example b/.env.example index 8572b45..3200101 100644 --- a/.env.example +++ b/.env.example @@ -1,19 +1,22 @@ -FRONTEND_URL="https://www.frontend.com" -BACKEND_URL="https://www.backend.com" -GRAPHQL_ENDPOINT="/graphql" +APP_FRONTEND_DOMAIN="www.frontend.com" +APP_BACKEND_DOMAIN="www.backend.com" +APP_PROTOCOL="https" +APP_GRAPHQL_ENDPOINT="/graphql" +APP_AUTHOR_NAME="Your Name" +APP_AUTHOR_EMAIL="your@email.com" +APP_AUTHOR_URL="https://www.yourWebsite.com/" +APP_FEED_DESCRIPTION="What you want..." -AUTHOR_NAME="Your Name" -AUTHOR_EMAIL="your@email.com" -AUTHOR_URL="https://www.yourWebsite.com/" -FEED_DESCRIPTION="What you want..." - -NEXT_PUBLIC_FRONTEND_URL="$FRONTEND_URL" -NEXT_PUBLIC_GRAPHQL_API="$BACKEND_URL$GRAPHQL_ENDPOINT" - -NEXT_PUBLIC_MATOMO_SITE_ID=0 -NEXT_PUBLIC_MATOMO_URL="https://matomoUrl.com" +NEXT_PUBLIC_APP_DOMAIN="$APP_FRONTEND_DOMAIN" +NEXT_PUBLIC_APP_PROTOCOL="$APP_PROTOCOL" +NEXT_PUBLIC_GRAPHQL_API="https://$APP_BACKEND_DOMAIN$APP_GRAPHQL_ENDPOINT" +NEXT_PUBLIC_MATOMO_SITE_ID=1 +NEXT_PUBLIC_MATOMO_DOMAIN="www.analyticsDomain.com" # Use this only in development mode. It prevents "unable to verify the first # certificate" error when using a local domain with mkcert certificate for # backend. #NODE_TLS_REJECT_UNAUTHORIZED=0 + +# Set node environment to not install dev dependencies. +#NODE_ENV=production |
