wiki / staging: some changes in config for the new wiki in staging
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
2ed4e90feb
commit
814fd550cd
1 changed files with 12 additions and 0 deletions
|
@ -14,9 +14,17 @@
|
||||||
#ini_set( 'display_errors', 1 );
|
#ini_set( 'display_errors', 1 );
|
||||||
|
|
||||||
# Added for timeout testing
|
# Added for timeout testing
|
||||||
|
{% if env == "staging" %}
|
||||||
|
#require_once( "includes/DefaultSettings.php" );
|
||||||
|
{% else %}
|
||||||
require_once( "includes/DefaultSettings.php" );
|
require_once( "includes/DefaultSettings.php" );
|
||||||
|
{% endif %}
|
||||||
#$wgDebugLogFile = '/tmp/out.log';
|
#$wgDebugLogFile = '/tmp/out.log';
|
||||||
|
{% if env == "staging" %}
|
||||||
|
#$wgCaptchaClass = 'SimpleCaptcha';
|
||||||
|
{% else %}
|
||||||
$wgCaptchaClass = 'SimpleCaptcha';
|
$wgCaptchaClass = 'SimpleCaptcha';
|
||||||
|
{% endif %}
|
||||||
#$wgCaptchaClass = 'FancyCaptcha';
|
#$wgCaptchaClass = 'FancyCaptcha';
|
||||||
#$wgCaptchaDirectory = "/mnt/web/attachments/captchas";
|
#$wgCaptchaDirectory = "/mnt/web/attachments/captchas";
|
||||||
#$wgCaptchaDirectoryLevels = 0;
|
#$wgCaptchaDirectoryLevels = 0;
|
||||||
|
@ -650,7 +658,11 @@ $_SERVER['SERVER_PORT'] = 443;
|
||||||
|
|
||||||
# do not bother to throttle login attempts
|
# do not bother to throttle login attempts
|
||||||
# users MUST have a valid OIDC token so brute force will get them nowhere.
|
# users MUST have a valid OIDC token so brute force will get them nowhere.
|
||||||
|
{% if env == "staging" %}
|
||||||
|
#$wgPasswordAttemptThrottle = false;
|
||||||
|
{% else %}
|
||||||
$wgPasswordAttemptThrottle = false;
|
$wgPasswordAttemptThrottle = false;
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
# Looks like mediawiki is using undefined constants.... Let's shut that up
|
# Looks like mediawiki is using undefined constants.... Let's shut that up
|
||||||
error_reporting(E_ALL ^ E_NOTICE);
|
error_reporting(E_ALL ^ E_NOTICE);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue