mediaDrop/config.example.json
Nicolas 52ace91580
Some checks failed
Publier l'image Docker / test (push) Failing after 21s
Publier l'image Docker / publish (push) Has been skipped
change config
2026-09-19 14:59:16 +02:00

38 lines
1 KiB
JSON

{
"$schema": "./config.schema.json",
"port": 3000,
"host": "0.0.0.0",
"publicUrl": "http://localhost:3000",
"targets": [
{
"name": "photos",
"label": "Photos",
"dir": "./uploads/photos",
"allowedMimeTypes": ["image/*"]
},
{
"name": "videos",
"label": "Vidéos",
"dir": "./uploads/videos",
"allowDirectories": true,
"allowedMimeTypes": ["video/*"],
"permissions": "0666"
},
{ "name": "divers", "label": "Divers", "dir": "./uploads/divers" }
],
"maxFileSizeMb": 512,
"logLevel": "info",
"chunkPoolSize": 30,
"allowedMimeTypes": ["image/jpeg", "image/png", "image/webp", "video/mp4", "audio/mpeg"],
"webhooks": [],
"session": {
"key": "REMPLACER_PAR_32_OCTETS_BASE64_openssl_rand_base64_32",
"maxAgeHours": 12
},
"oidc": {
"issuer": "https://auth.exemple.fr/realms/mon-realm",
"clientId": "mediadrop",
"clientSecret": "REMPLACER_PAR_LE_SECRET_DU_CLIENT",
"scopes": ["openid", "profile", "email"]
}
}