| 123456789101112131415161718192021222324252627282930 |
- <?php
- // Copy this file to config.php and change the password before deploying.
- define("BACKUP_SERVER_PASSWORD", "change-me");
- // Optional stronger alternative:
- // define("BACKUP_SERVER_PASSWORD_HASH", "$2y$10$replace-this-with-a-precomputed-password-hash");
- define("BACKUP_SERVER_RETENTION", 30);
- define("BACKUP_SERVER_BACKUP_DIR", __DIR__ . "/backups/");
- define("BACKUP_SERVER_INDEX_FILE", BACKUP_SERVER_BACKUP_DIR . "index.json");
- define("BACKUP_SERVER_SETTINGS_FILE", BACKUP_SERVER_BACKUP_DIR . "settings.json");
- // S3-compatible object storage (optional). Leave disabled for local-only behavior.
- // When enabled, every upload is archived to S3 and only the newest local copies
- // are kept on disk. All five connection values must be filled in.
- define("BACKUP_SERVER_S3_ENABLED", false);
- define("BACKUP_SERVER_S3_ENDPOINT", "https://fsn1.your-objectstorage.com"); // e.g. Hetzner
- define("BACKUP_SERVER_S3_REGION", "fsn1");
- define("BACKUP_SERVER_S3_BUCKET", "");
- define("BACKUP_SERVER_S3_PREFIX", "psa-backups"); // key prefix inside the bucket, may be ""
- define("BACKUP_SERVER_S3_ACCESS_KEY", "");
- define("BACKUP_SERVER_S3_SECRET_KEY", "");
- // Addressing style. false = virtual-hosted (https://<bucket>.<endpoint>/<key>),
- // which Hetzner and most providers expect. Set true only if your provider
- // requires path-style (https://<endpoint>/<bucket>/<key>).
- define("BACKUP_SERVER_S3_PATH_STYLE", false);
- define("BACKUP_SERVER_S3_TIMEOUT", 120); // seconds per HTTP request
- define("BACKUP_SERVER_S3_RETENTION", 365); // default S3 backups kept per instance
- define("BACKUP_SERVER_LOG_FILE", BACKUP_SERVER_BACKUP_DIR . "s3.log");
|