-
Notifications
You must be signed in to change notification settings - Fork 230
User based config
Since v1.0.0 it's possible to create username based configs when using basic HTTP authentication or the COPS basic authentication. When using this feature, usernames can only consist out of a-z, A-Z, 0-9 and _- characters.
When using HTTP authentication you need to create a new config file named: config_local.<username>
.php besides the config_local.php. In this config file you can add user specific options.
When using the COPS Basic authentication you need to add the following line to your config_local.php:
$config['cops_basic_authentication'] = array();
It's also possible to create a kind of master account by supplying a username and password in your config_local.php.
Then create a new config file named: config_local.<username>
.php and add the following line:
$config['cops_basic_authentication'] = array('username' => 'user', 'password' => 'xxxxx');
And change user
into the same username as used in the config filename.
If you're using nginx you may have to add this line to your configuration :
fastcgi_pass_header Authorization;