forked from ypereirareis/docker-satis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
executable file
·63 lines (52 loc) · 1.38 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/**
* Satis configuration file
*/
$app['satis.filename'] = '/app/config.json';
/**
* Satis auditlog (cheap backup/versioning) path
*/
$app['satis.auditlog'] = __DIR__.'/data';
/**
* Satis main configuration class
*/
$app['satis.class'] = 'Playbloom\\Satisfy\\Model\\Configuration';
/**
* Default values for a new repository
*/
$app['composer.repository.type_default'] = 'git';
$app['composer.repository.url_default'] = '';
/**
* Default repository url pattern
*/
$app['repository.pattern'] = '.*';
/**
* More restrictive username/email constraints for production
*/
$app['auth'] = $app->share(function() {
return function($username) {
return (bool) preg_match('/@your-organization\.tld$/', $username);
};
});
/**
* If the simple standard login form should be used to restrict admin section
*/
$app['auth.use_login_form'] = true;
/**
* Users authorized to access admin section (an array of username => password)
* Default credentials are: admin / foo.
*
* You can generate a new password with the following command:
*
* php -r "echo hash('sha1', 'mypassword');"
*
*/
$app['auth.users'] = array(
'admin' => '0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33',
'john' => 'd6b4e84ee7f31d88617a6b60421451272ebf1a3a',
);
/**
* If OpenID auth via Google should be used.
* Ignored if auth.use_login_form is set to true
*/
$app['auth.use_google_openid'] = false;