feat: integrate NextAuth for authentication, refactor login and registration processes, and enhance middleware for session management
This commit is contained in:
24
ENV.md
Normal file
24
ENV.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# Variables d'environnement requises
|
||||
|
||||
## 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
|
||||
|
||||
# NextAuth Configuration
|
||||
NEXTAUTH_SECRET=your-secret-key-here-generate-with-openssl-rand-base64-32
|
||||
NEXTAUTH_URL=http://localhost:3020
|
||||
|
||||
# Node Environment
|
||||
NODE_ENV=production
|
||||
```
|
||||
|
||||
## Génération du secret NextAuth
|
||||
```bash
|
||||
openssl rand -base64 32
|
||||
```
|
||||
|
||||
## Développement
|
||||
Pour le développement, les variables sont définies directement dans `docker-compose.dev.yml`.
|
||||
Reference in New Issue
Block a user