mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-04-06 15:43:29 -04:00
- Use only Minz_Configuration
- register() method to load a new configuration file
- get() to get a configuration
- new exceptions related to configuration
- fix a list configuration calls to have FRSS working
Current problems to resolve:
- How to handle configuration param verifications (i.e. check auth_type
is a value from none, http_auth, persona or form)
- We must use $conf = Minz_Configuration::get('system'); $general_conf = $conf->general;
to access global system configuration which is quite annoying. How to change that?
See https://github.com/FreshRSS/FreshRSS/issues/730
33 lines
634 B
PHP
33 lines
634 B
PHP
<?php
|
|
|
|
return array(
|
|
'general' => array(
|
|
'environment' => 'production',
|
|
'salt' => '',
|
|
'base_url' => '',
|
|
'language' => 'en',
|
|
'title' => 'FreshRSS',
|
|
'default_user' => '_',
|
|
'allow_anonymous' => false,
|
|
'allow_anonymous_refresh' => false,
|
|
'auth_type' => 'none',
|
|
'api_enabled' => false,
|
|
'unsafe_autologin_enabled' => false,
|
|
),
|
|
'limits' => array(
|
|
'cache_duration' => 800,
|
|
'timeout' => 10,
|
|
'max_inactivity' => PHP_INT_MAX,
|
|
'max_feeds' => 16384,
|
|
'max_categories' => 16384,
|
|
),
|
|
'db' => array(
|
|
'type' => 'sqlite',
|
|
'host' => '',
|
|
'user' => '',
|
|
'password' => '',
|
|
'base' => '',
|
|
'prefix' => '',
|
|
),
|
|
);
|