-
Notifications
You must be signed in to change notification settings - Fork 4
Configuration
Lukas Bestle edited this page Oct 2, 2021
·
1 revision
The Versions plugin supports the following options in site/config/config.php
.
You only need to define the options if you want to change the defaults or if you want to set up multiple instances.
<?php
return [
'lukasbestle.versions' => [
// time after which versions should be deleted automatically;
// defaults to one week
'autodelete.age' => 7 * 24 * 60 * 60,
// number of versions to preserve at maximum;
// defaults to 20
'autodelete.count' => 20,
// path to the Git binary;
// autodetected from PHP's `$PATH` if not set
'git.path' => '/usr/local/bin/git',
// list of the site instances that can be managed from the Panel;
// disabled by default (which will limit the access to the current site);
// note that you can configure this differently in each instance's
// `site/config.php` to limit the access from specific instances
// (e.g. if a test instance shouldn't be able to access production)
'instances' => [
// instance name that is displayed in the Panel
'Staging' => [
// path to the content directory
'contentRoot' => '/path/to/staging/site/content',
// CSS color for display in the Panel
'color' => '#f5871f'
],
// ...
]
]
];