From e09d9a5138c33eab624422e8ecce1ffeedb726fa Mon Sep 17 00:00:00 2001 From: doandroidsdreamof Date: Tue, 11 Jun 2024 15:08:03 +0300 Subject: [PATCH] chore: .env file edited --- .dockerignore | 11 ++++++++++- .env.development.example | 26 ++++++++++++++++++++++++++ .env.example | 13 ++++--------- 3 files changed, 40 insertions(+), 10 deletions(-) create mode 100644 .env.development.example diff --git a/.dockerignore b/.dockerignore index c809ddb..4ae3668 100644 --- a/.dockerignore +++ b/.dockerignore @@ -44,4 +44,13 @@ database .env.development .github **/*.github -build.yml \ No newline at end of file +build.yml + +.tmp/ +.cache/ +.git/ +build/ +node_modules/ +.env +data/ +backup/ diff --git a/.env.development.example b/.env.development.example new file mode 100644 index 0000000..2b2c1f8 --- /dev/null +++ b/.env.development.example @@ -0,0 +1,26 @@ +HOST=0.0.0.0 +PORT=1337 +APP_KEYS= +API_TOKEN_SALT= +ADMIN_JWT_SECRET= +TRANSFER_TOKEN_SALT= +# openssl rand -hex 32 +JWT_SECRET= + +# Database +DATABASE_CLIENT=postgres +DATABASE_HOST=postgres +DATABASE_PORT=5432 +DATABASE_NAME=strapi +DATABASE_USERNAME=strapi +DATABASE_PASSWORD=strapi +DATABASE_SSL=false +NODE_ENV=development + +DATABASE_POOL_MIN=2 +DATABASE_POOL_MAX=10 +DATABASE_CONNECTION_TIMEOUT=60000 + +DEV_URL=http://localhost:1337 +PROD_URL= +PROD_URL_ADMIN= diff --git a/.env.example b/.env.example index 5d93c93..44bc351 100644 --- a/.env.example +++ b/.env.example @@ -4,6 +4,7 @@ APP_KEYS= API_TOKEN_SALT= ADMIN_JWT_SECRET= TRANSFER_TOKEN_SALT= +# openssl rand -hex 32 JWT_SECRET= # Database @@ -16,22 +17,16 @@ DATABASE_PASSWORD=strapi DATABASE_SSL=false # For test purpose this should be true NODE_ENV=production -POSTGRES_PORT=5432 -POSTGRES_PASSWORD=strapi -POSTGRES_CONTAINER=postgres -POSTGRES_DB=strapi #127.0.0.1 -POSTGRES_USER=strapi - -#TODO search these parameters +#TODO seach these parameters DATABASE_POOL_MIN=2 DATABASE_POOL_MAX=10 DATABASE_CONNECTION_TIMEOUT=60000 -# New relic +# New relic for production LICENSE_KEY= PROD_URL= DEV_URL= -PROD_URL_ADMIN= \ No newline at end of file +PROD_URL_ADMIN=