config.sample.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. // DEPRECATED: The bundled managed backup server is deprecated and unmaintained.
  3. // It is kept for reference only and will be removed in a future release.
  4. // Do not deploy it for new installations.
  5. // Copy this file to config.php and change the password before deploying.
  6. define("BACKUP_SERVER_PASSWORD", "change-me");
  7. // Optional stronger alternative:
  8. // define("BACKUP_SERVER_PASSWORD_HASH", "$2y$10$replace-this-with-a-precomputed-password-hash");
  9. define("BACKUP_SERVER_RETENTION", 30);
  10. define("BACKUP_SERVER_BACKUP_DIR", __DIR__ . "/backups/");
  11. define("BACKUP_SERVER_INDEX_FILE", BACKUP_SERVER_BACKUP_DIR . "index.json");
  12. define("BACKUP_SERVER_SETTINGS_FILE", BACKUP_SERVER_BACKUP_DIR . "settings.json");
  13. // S3-compatible object storage (optional). Leave disabled for local-only behavior.
  14. // When enabled, every upload is archived to S3 and only the newest local copies
  15. // are kept on disk. All five connection values must be filled in.
  16. define("BACKUP_SERVER_S3_ENABLED", false);
  17. define("BACKUP_SERVER_S3_ENDPOINT", "https://fsn1.your-objectstorage.com"); // e.g. Hetzner
  18. define("BACKUP_SERVER_S3_REGION", "fsn1");
  19. define("BACKUP_SERVER_S3_BUCKET", "");
  20. define("BACKUP_SERVER_S3_PREFIX", "psa-backups"); // key prefix inside the bucket, may be ""
  21. define("BACKUP_SERVER_S3_ACCESS_KEY", "");
  22. define("BACKUP_SERVER_S3_SECRET_KEY", "");
  23. // Addressing style. false = virtual-hosted (https://<bucket>.<endpoint>/<key>),
  24. // which Hetzner and most providers expect. Set true only if your provider
  25. // requires path-style (https://<endpoint>/<bucket>/<key>).
  26. define("BACKUP_SERVER_S3_PATH_STYLE", false);
  27. define("BACKUP_SERVER_S3_TIMEOUT", 120); // seconds per HTTP request
  28. define("BACKUP_SERVER_S3_RETENTION", 365); // default S3 backups kept per instance
  29. define("BACKUP_SERVER_LOG_FILE", BACKUP_SERVER_BACKUP_DIR . "s3.log");