feature/adapt-to-new-database #34

Merged
vivy-agent merged 9 commits from feature/adapt-to-new-database into main 2026-05-29 15:47:47 +07:00
29 changed files with 2186 additions and 1066 deletions
Showing only changes of commit cfb9b61c8a - Show all commits

View File

@ -1,28 +1,40 @@
APP_NAME=NounozCommunity # Environment variables for application
APP_ENV=development 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_DOMAIN=
APP_PROTOCOL= APP_PROTOCOL=
APP_PORT= APP_PORT=
API_KEY=87e20de621fe18930dfbe714d8684bd5ada376903c3092fa3b9aa4a2db10cfba APP_URL=
API_KEY=
ALLOWED_ORIGINS=www.nounoz.com,nounoz.com,localhost ALLOWED_ORIGINS=www.nounoz.com,nounoz.com,localhost
# Admin user configuration
DEFAULT_ADMIN_EMAIL= DEFAULT_ADMIN_EMAIL=
DEFAULT_ADMIN_USERNAME= DEFAULT_ADMIN_USERNAME=
DEFAULT_ADMIN_PASSWORD= DEFAULT_ADMIN_PASSWORD=
# Application features
ENABLE_REGISTRATION=
ENABLE_HERO_BANNER=
# Auth Service configuration
SALT_ROUNDS= SALT_ROUNDS=
JWT_SECRET= JWT_SECRET=
SESSION_EXPIRE= SESSION_EXPIRE=
SESSION_CACHE_EXPIRE=
# MinIO configuration
MINIO_HOST= MINIO_HOST=
MINIO_PORT= MINIO_PORT=
MINIO_ACCESS_KEY= MINIO_ACCESS_KEY=
MINIO_SECRET_KEY= MINIO_SECRET_KEY=
MINIO_BUCKET= MINIO_BUCKET=
# MyAnimeList API credentials
MAL_CLIENT_ID= MAL_CLIENT_ID=
MAL_CLIENT_SECRET= MAL_CLIENT_SECRET=
# SMTP configuration
SMTP_HOST= SMTP_HOST=
SMTP_PORT= SMTP_PORT=
SMTP_SECURE= SMTP_SECURE=
@ -30,14 +42,18 @@ SMTP_USER=
SMTP_PASS= SMTP_PASS=
SMTP_FROM= SMTP_FROM=
# Caching configuration
REDIS_HOST=localhost REDIS_HOST=localhost
REDIS_PORT=6379 REDIS_PORT=6379
REDIS_PASSWORD= REDIS_PASSWORD=
# Database configuration
DATABASE_URL= DATABASE_URL=
SHADOW_DATABASE_URL=
ENABLE_PRISMA_LOG=
# OAuth configuration
GITHUB_CLIENT_ID= GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET= GITHUB_CLIENT_SECRET=
GOOGLE_CLIENT_ID= GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET= GOOGLE_CLIENT_SECRET=

View File

@ -2,15 +2,7 @@ import fs from "fs";
import path from "path"; import path from "path";
// These keys will not be cleared in the .env.example file // These keys will not be cleared in the .env.example file
const PRESERVED_KEYS = [ const PRESERVED_KEYS = ["APP_NAME", "APP_ENV", "PORT", "ALLOWED_ORIGINS", "REDIS_HOST", "REDIS_PORT"];
"APP_NAME",
"APP_ENV",
"PORT",
"API_KEY",
"ALLOWED_ORIGINS",
"REDIS_HOST",
"REDIS_PORT",
];
/** /**
* Script to create or update the .env.example file based on the .env file. * Script to create or update the .env.example file based on the .env file.