refactor: migrate from MongoDB to SQLite, updating database schema and configuration for improved performance and simplicity
This commit is contained in:
14
ENV.md
14
ENV.md
@@ -2,10 +2,8 @@
|
||||
|
||||
## Production (.env)
|
||||
```env
|
||||
# MongoDB Configuration
|
||||
MONGO_USER=admin
|
||||
MONGO_PASSWORD=your-secure-password
|
||||
MONGODB_URI=mongodb://admin:your-secure-password@mongodb:27017/stripstream?authSource=admin&replicaSet=rs0
|
||||
# Database Configuration (SQLite)
|
||||
DATABASE_URL=file:./data/stripstream.db
|
||||
|
||||
# NextAuth Configuration
|
||||
NEXTAUTH_SECRET=your-secret-key-here-generate-with-openssl-rand-base64-32
|
||||
@@ -32,13 +30,5 @@ NODE_ENV=production
|
||||
openssl rand -base64 32
|
||||
```
|
||||
|
||||
## Génération du keyFile MongoDB (requis pour Prisma)
|
||||
```bash
|
||||
openssl rand -base64 756 > mongo-keyfile
|
||||
chmod 400 mongo-keyfile
|
||||
```
|
||||
|
||||
Ce fichier est nécessaire pour MongoDB en mode replica set (requis par Prisma pour les relations et transactions).
|
||||
|
||||
## Développement
|
||||
Pour le développement, les variables sont définies directement dans `docker-compose.dev.yml`.
|
||||
|
||||
Reference in New Issue
Block a user