-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathmirror.config.php.dist
More file actions
20 lines (19 loc) · 900 Bytes
/
mirror.config.php.dist
File metadata and controls
20 lines (19 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
return [
// directory where metadata files will get saved
'target_dir' => /* TODO */,
// user agent describing your mirror node, if possible include domain name of mirror, and a contact email address
'user_agent' => /* TODO Mirror for foo.com (mycontact@example.org) */,
// source repository URL
'repo_url' => 'https://repo.packagist.org',
// source repository hostname (optional, will guess from repo_url)
//'repo_hostname' => 'repo.packagist.org',
// source API URL
'api_url' => 'https://packagist.org',
// how many times the script will run the mirroring step before exiting
'iterations' => 120,
// how many seconds to wait between mirror runs
'iteration_interval' => 5,
// set this to false if you do not run the --v1 mirror job, to ensure that the v2 will then take care of syncing packages.json
'has_v1_mirror' => true,
];