config.sample.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Site configuration. Copy this file to config.php and fill in your values.
  4. * config.php is never committed to git and never rewritten by the application.
  5. */
  6. return [
  7. // ---- Site -------------------------------------------------------------
  8. 'site' => [
  9. 'name' => 'Jane Doe Photography',
  10. // Base URL of the public site, no trailing slash. Used for links in
  11. // shared gallery URLs. Example: 'https://www.example.com'
  12. 'base_url' => 'https://www.example.com',
  13. // IANA timezone used for gallery expiry checks.
  14. 'timezone' => 'Europe/Berlin',
  15. ],
  16. // ---- Hetzner Object Storage (S3-compatible) ---------------------------
  17. // Create the bucket in the Hetzner console, keep it PRIVATE.
  18. // Endpoint depends on the location, e.g. fsn1/nbg1/hel1.
  19. 's3' => [
  20. 'endpoint' => 'https://fsn1.your-objectstorage.com',
  21. 'region' => 'fsn1',
  22. 'bucket' => 'my-photo-galleries',
  23. 'access_key' => 'CHANGE_ME',
  24. 'secret_key' => 'CHANGE_ME',
  25. // Lifetime of presigned GET URLs (seconds). Gallery pages embed these;
  26. // after expiry the browser must reload the page for fresh URLs.
  27. 'url_ttl' => 3600,
  28. ],
  29. // ---- Uploads ----------------------------------------------------------
  30. 'uploads' => [
  31. // Longest edge of the client-side generated grid thumbnails (px).
  32. // Originals are never touched.
  33. 'thumb_size' => 600,
  34. // JPEG quality for thumbnails (0.0 - 1.0, used by the browser canvas).
  35. 'thumb_quality' => 0.8,
  36. ],
  37. ];