feature/adapt-to-new-database #34
24
.env.example
24
.env.example
@ -1,28 +1,40 @@
|
||||
APP_NAME=NounozCommunity
|
||||
APP_ENV=development
|
||||
# Environment variables for application
|
||||
APP_NAME=AstofoTV
|
||||
APP_ENV=development # Change to "production" when deploying to production environment, this will disable some development features and enable production optimizations.
|
||||
APP_DOMAIN=
|
||||
APP_PROTOCOL=
|
||||
APP_PORT=
|
||||
API_KEY=87e20de621fe18930dfbe714d8684bd5ada376903c3092fa3b9aa4a2db10cfba
|
||||
APP_URL=
|
||||
API_KEY=
|
||||
ALLOWED_ORIGINS=www.nounoz.com,nounoz.com,localhost
|
||||
|
||||
# Admin user configuration
|
||||
DEFAULT_ADMIN_EMAIL=
|
||||
DEFAULT_ADMIN_USERNAME=
|
||||
DEFAULT_ADMIN_PASSWORD=
|
||||
|
||||
# Application features
|
||||
ENABLE_REGISTRATION=
|
||||
ENABLE_HERO_BANNER=
|
||||
|
||||
# Auth Service configuration
|
||||
SALT_ROUNDS=
|
||||
JWT_SECRET=
|
||||
SESSION_EXPIRE=
|
||||
SESSION_CACHE_EXPIRE=
|
||||
|
||||
# MinIO configuration
|
||||
MINIO_HOST=
|
||||
MINIO_PORT=
|
||||
MINIO_ACCESS_KEY=
|
||||
MINIO_SECRET_KEY=
|
||||
MINIO_BUCKET=
|
||||
|
||||
# MyAnimeList API credentials
|
||||
MAL_CLIENT_ID=
|
||||
MAL_CLIENT_SECRET=
|
||||
|
||||
# SMTP configuration
|
||||
SMTP_HOST=
|
||||
SMTP_PORT=
|
||||
SMTP_SECURE=
|
||||
@ -30,14 +42,18 @@ SMTP_USER=
|
||||
SMTP_PASS=
|
||||
SMTP_FROM=
|
||||
|
||||
# Caching configuration
|
||||
REDIS_HOST=localhost
|
||||
REDIS_PORT=6379
|
||||
REDIS_PASSWORD=
|
||||
|
||||
# Database configuration
|
||||
DATABASE_URL=
|
||||
SHADOW_DATABASE_URL=
|
||||
ENABLE_PRISMA_LOG=
|
||||
|
||||
# OAuth configuration
|
||||
GITHUB_CLIENT_ID=
|
||||
GITHUB_CLIENT_SECRET=
|
||||
|
||||
GOOGLE_CLIENT_ID=
|
||||
GOOGLE_CLIENT_SECRET=
|
||||
@ -2,15 +2,7 @@ import fs from "fs";
|
||||
import path from "path";
|
||||
|
||||
// These keys will not be cleared in the .env.example file
|
||||
const PRESERVED_KEYS = [
|
||||
"APP_NAME",
|
||||
"APP_ENV",
|
||||
"PORT",
|
||||
"API_KEY",
|
||||
"ALLOWED_ORIGINS",
|
||||
"REDIS_HOST",
|
||||
"REDIS_PORT",
|
||||
];
|
||||
const PRESERVED_KEYS = ["APP_NAME", "APP_ENV", "PORT", "ALLOWED_ORIGINS", "REDIS_HOST", "REDIS_PORT"];
|
||||
|
||||
/**
|
||||
* Script to create or update the .env.example file based on the .env file.
|
||||
|
||||
Reference in New Issue
Block a user