38 lines
1 KiB
JSON
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": "0o666"
|
|
},
|
|
{ "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"]
|
|
}
|
|
}
|