Update auth config for ttrss 1.6
This commit is contained in:
parent
c6428c8b02
commit
9d60fb8cc0
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
|
|
||||||
my $auth = ${'tt-rss'}{'Authentication'} || 'http';
|
my $auth = ${'tt-rss'}{'Authentication'} || 'http';
|
||||||
my $remote = ($auth eq 'internal') ? 'false':'true';
|
my $authModule = ($auth eq 'internal') ? 'internal':'remote';
|
||||||
my $multi = ((${'tt-rss'}{'MultiUser'} || 'enabled') eq 'enabled') ? 'false':'true';
|
my $multi = ((${'tt-rss'}{'MultiUser'} || 'enabled') eq 'enabled') ? 'false':'true';
|
||||||
|
|
||||||
$OUT .=<<"HERE";
|
$OUT .=<<"HERE";
|
||||||
|
@ -10,7 +10,7 @@ $OUT .=<<"HERE";
|
||||||
// Operate in single user mode, disables all functionality related to
|
// Operate in single user mode, disables all functionality related to
|
||||||
// multiple users.
|
// multiple users.
|
||||||
|
|
||||||
define('ALLOW_REMOTE_USER_AUTH',$remote);
|
define('AUTH_MODULES',$authModule);
|
||||||
// Set to 'true' if you trust your web server's REMOTE_USER
|
// Set to 'true' if you trust your web server's REMOTE_USER
|
||||||
// environment variable to validate that the user is logged in. This
|
// environment variable to validate that the user is logged in. This
|
||||||
// option can be used to integrate tt-rss with Apache's external
|
// option can be used to integrate tt-rss with Apache's external
|
||||||
|
@ -19,12 +19,12 @@ $OUT .=<<"HERE";
|
||||||
HERE
|
HERE
|
||||||
}
|
}
|
||||||
|
|
||||||
define('AUTO_CREATE_USER',true);
|
define('AUTH_AUTO_CREATE',true);
|
||||||
// If users are authenticated by your web server, set this to true if
|
// If users are authenticated by your web server, set this to true if
|
||||||
// You want new users to be automaticaly created in tt-rss database
|
// You want new users to be automaticaly created in tt-rss database
|
||||||
// on first login
|
// on first login
|
||||||
|
|
||||||
define('AUTO_LOGIN',true);
|
define('AUTH_AUTO_LOGIN',true);
|
||||||
// Set this to true if you use ALLOW_REMOTE_USER_AUTH and you want
|
// Set this to true if you use ALLOW_REMOTE_USER_AUTH and you want
|
||||||
// to skip the login form. If set to true, users won't be able to select
|
// to skip the login form. If set to true, users won't be able to select
|
||||||
// profile
|
// profile
|
||||||
|
|
Loading…
Reference in New Issue
Block a user