Add Strapi configuration variables

This commit is contained in:
Andrew 2024-02-02 15:51:00 +03:00
parent 8ddc517e49
commit 476930a12f
3 changed files with 19 additions and 12 deletions

View File

@ -1,12 +1,22 @@
HOST=0.0.0.0
PORT=1337
APP_URL=https://api.enderman.ch/cms
APP_ADMIN_PREFIX=/panel
APP_KEYS="toBeModified1,toBeModified2"
API_TOKEN_SALT=tobemodified
JWT_SECRET=tobemodified
ADMIN_JWT_SECRET=tobemodified
TRANSFER_TOKEN_SALT=tobemodified
# 16-byte Base64 messages: node -e "console.log(require('crypto').randomBytes(16).toString('base64'))" to generate
APP_KEYS=,,,
API_TOKEN_SALT=
JWT_SECRET=
ADMIN_JWT_SECRET=
TRANSFER_TOKEN_SALT=
# Build
APP_DIRECTORY=/opt
NODE_ENV=development
# Miscellaneous
PUBLIC_URL=https://api.enderman.ch/cms
ADMIN_PATH=/panel
STRAPI_ADMIN_BACKEND_URL=
STRAPI_TELEMETRY_DISABLED=true
# Database
DATABASE_CLIENT=postgres
@ -17,6 +27,3 @@ DATABASE_USERNAME=postgres
DATABASE_PASSWORD=password
DATABASE_SSL=false
# Build
APP_DIRECTORY=/opt
NODE_ENV=development

View File

@ -14,5 +14,5 @@ export default ({ env }) => ({
nps: env.bool('FLAG_NPS', true),
promoteEE: env.bool('FLAG_PROMOTE_EE', true),
},
url: env('APP_ADMIN_PREFIX', '/dashboard'),
url: env('ADMIN_PATH', '/dashboard'),
});

View File

@ -7,5 +7,5 @@ export default ({ env }) => ({
webhooks: {
populateRelations: env.bool('WEBHOOKS_POPULATE_RELATIONS', false),
},
url: env('APP_URL', 'https://api.enderman.ch/cms'),
url: env('PUBLIC_URL', 'https://api.enderman.ch/cms'),
});