- auth: cookie od_token 7j, refresh token od_refresh 30j, POST /api/auth/refresh, GET /api/auth/me/optional - admin: POST /api/admin/videos/upload via multer (mp4/webm, 4Go max, UUID filename) - playlist: PATCH /:id, DELETE /:id, POST /:id/videos, DELETE /:id/videos/:videoId - env: UPLOADS_DIR documenté dans .env.example
20 lines
414 B
Plaintext
20 lines
414 B
Plaintext
# Server
|
|
NODE_ENV=development
|
|
PORT=4001
|
|
|
|
# Database (MySQL)
|
|
DB_HOST=localhost
|
|
DB_PORT=3306
|
|
DB_USER=originsdigital
|
|
DB_PASSWORD=
|
|
DB_NAME=originsdigital
|
|
|
|
# SuperOAuth — service d'authentification externe
|
|
SUPER_OAUTH_URL=https://superoauth.tetardtek.com
|
|
|
|
# CORS — URL du frontend autorisé
|
|
FRONTEND_URL=http://localhost:5173
|
|
|
|
# Dossier de stockage des vidéos uploadées (défaut: ./uploads)
|
|
UPLOADS_DIR=./uploads
|