| Current Path : /home/happyrenas/fun/config/ |
Linux webd005.cluster105.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 |
| Current File : /home/happyrenas/fun/config/config.php |
<?php
/**
* CONFIG — à éditer facilement
* - Permet de saisir/modifier les IDs de fichiers Google Sheets et les noms d’onglets au même endroit.
* - Chemin vers la clé Service Account JSON (stockée hors /public).
*/
return [
'google' => [
// IMPORTANT: mets service-account.json dans /config (hors web root)
'service_account_json_path' => __DIR__ . '/service-account.json',
'application_name' => 'MyReco Activite Form',
],
'sheets' => [
// A) Activités
'activities' => [
'spreadsheet_id' => '113FMQHeFvpAdIvMKWwNl4lJrbUWGC2yJ-64Lobk9aug',
'sheet_name' => 'Activite_nom',
// En-têtes attendus (info / doc)
'headers' => ['id','name','full_address','postal_code','categorie','FR','total_heberg','qr_mrx','liste_heberg','log_form'],
],
// B) DB
'db' => [
'spreadsheet_id' => '19mLp6TiUU4p784to-JD6LvIn3AU6CGGN56NKFTLJ25I',
'products_sheet' => 'Produits',
'image_sheet' => 'Image',
'avant_sheet' => 'avant paiement',
],
],
'cache' => [
'dir' => dirname(__DIR__) . '/storage/cache',
'ttl_seconds' => 1200, // 20 min (10–30 min demandé)
],
'ratelimit' => [
'dir' => dirname(__DIR__) . '/storage/ratelimit',
// limites simples (à ajuster si besoin)
'get' => ['window_seconds' => 600, 'max' => 120], // 120 req / 10 min / IP
'post' => ['window_seconds' => 600, 'max' => 30], // 30 req / 10 min / IP
],
];