Ignore local checkout config
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
checkout/config.php
|
||||||
|
.env
|
||||||
|
*.key
|
||||||
@@ -1,77 +0,0 @@
|
|||||||
<?php
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
return [
|
|
||||||
// Clau secreta real de Stripe. NO la posis mai al HTML.
|
|
||||||
'stripe_secret_key' => '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',
|
|
||||||
|
|
||||||
// Secret del webhook de Stripe (Signing secret)
|
|
||||||
'stripe_webhook_secret' => 'whsec_8FTXIXPWBSzFjJNQWuzetQF6LoNKv9sg',
|
|
||||||
|
|
||||||
// Moneda
|
|
||||||
'currency' => 'eur',
|
|
||||||
|
|
||||||
// On guardar les comandes i logs
|
|
||||||
'orders_storage_dir' => dirname(__DIR__) . '/data',
|
|
||||||
|
|
||||||
// URLs públiques
|
|
||||||
'success_url' => 'https://kapvoe-portfoli.treblarella.org/checkout/payment-success.php',
|
|
||||||
'cancel_url' => 'https://kapvoe-portfoli.treblarella.org/checkout/payment-cancel.php',
|
|
||||||
|
|
||||||
'stock_sync_url' => 'https://script.google.com/macros/s/AKfycbyH6PuQPR342mwSiKCkYZ1lOnn1VccqzFO-ScbhwjvJoABU3LqVNJcS3gtPE5ZuT0JyvQ/exec',
|
|
||||||
'stock_sync_token' => 'kapvoe_stock_2026_x7F9mQpL2vN8rT4sZ1kW',
|
|
||||||
|
|
||||||
'catalog_api_url' => 'https://kapvoe-portfoli.treblarella.org/api/products.php',
|
|
||||||
|
|
||||||
// Tracking i analytics per Google Sheets / Looker Studio
|
|
||||||
'analytics_enabled' => true,
|
|
||||||
'analytics_sync_url' => 'https://script.google.com/macros/s/AKfycbyyK8fAytZcPHuJKn-LVItMC8BAyTz0jzHml47vvfOHsTwhetCITND_-_yNd7HqickQ/exec',
|
|
||||||
'analytics_sync_token' => 'kapvoe_analitycs_2026_x7F9mQpL2vN8rT4sZ1kW',
|
|
||||||
'analytics_timeout' => 10,
|
|
||||||
|
|
||||||
// Correu sortint
|
|
||||||
// Si vols dependre nomes de la Synology, fes servir 'smtp'.
|
|
||||||
// Opcions: auto | mail | smtp | resend
|
|
||||||
'mail_transport' => 'smtp',
|
|
||||||
'mail_from_email' => 'pedidos@bloodbros.store',
|
|
||||||
'mail_from_name' => 'Blood Bros Sports',
|
|
||||||
'mail_reply_to' => 'pedidos@bloodbros.store',
|
|
||||||
|
|
||||||
// API HTTP de correu. Recomanat si el hosting falla amb mail() o SMTP.
|
|
||||||
// Amb Resend nomes cal una API key i el domini verificat.
|
|
||||||
'resend_api_key' => '',
|
|
||||||
'resend_api_url' => 'https://api.resend.com/emails',
|
|
||||||
|
|
||||||
// AvÃs intern de noves comandes
|
|
||||||
// SMTP sortint. Activa-ho si el servidor no envia be amb mail().
|
|
||||||
// SMTP sortint. Idealment apunta al servidor SMTP de la teva Synology.
|
|
||||||
// Exemples habituals:
|
|
||||||
// - NAS mateixa maquina: 127.0.0.1
|
|
||||||
// - NAS a la LAN: 192.168.x.x
|
|
||||||
'smtp_enabled' => true,
|
|
||||||
'smtp_host' => 'mail.bloodbros.store',
|
|
||||||
'smtp_port' => 587,
|
|
||||||
'smtp_encryption' => 'tls',
|
|
||||||
'smtp_username' => 'pedidos@bloodbros.store',
|
|
||||||
'smtp_password' => '2%0Jx5zv',
|
|
||||||
'smtp_timeout' => 15,
|
|
||||||
// Prova de compatibilitat TLS per hostings/PHPs restrictius.
|
|
||||||
// Activa-ho nomes per provar si el problema es la validacio del certificat.
|
|
||||||
'smtp_allow_invalid_certificates' => true,
|
|
||||||
|
|
||||||
// Avis intern per correu
|
|
||||||
'admin_notification_email' => 'pedidos@bloodbros.store',
|
|
||||||
|
|
||||||
// Avis intern independent del correu.
|
|
||||||
// Si poses un webhook intern de la Synology, es cridara per cada compra pagada.
|
|
||||||
// Si ho deixes buit, es guardara a data/internal-notifications.log
|
|
||||||
'internal_notification_enabled' => true,
|
|
||||||
'internal_notification_webhook_url' => '',
|
|
||||||
'internal_notification_webhook_token' => '',
|
|
||||||
'internal_notification_timeout' => 10,
|
|
||||||
'internal_notification_log_path' => dirname(__DIR__) . '/data/internal-notifications.log',
|
|
||||||
|
|
||||||
// Token per eines internes com el test de correu.
|
|
||||||
// Posa-hi un valor llarg i privat abans d'usar test-mail.php
|
|
||||||
'admin_tools_token' => 'kapvoe-test-2026-9xF2mL7qP4sT8vN1',
|
|
||||||
];
|
|
||||||
Reference in New Issue
Block a user