docker/config/security.php

22 lines
1,005 B
PHP
Raw Permalink Normal View History

2023-04-14 08:35:51 +00:00
<?php
$sessionGrants = (bool)$_ENV['SECURITY_SESSION_GRANTS']
$unregisteredSubmissions = (bool)$_ENV['SECURITY_UNREGISTERED_SUBMISSIONS']
$preactivateAccounts = (bool)$_ENV['SECURITY_PREACTIVATE_ACCOUNTS']
$enableCaptcha = (bool)$_ENV['HCAPTCHA_ENABLED']
$hCaptchaKey = $_ENV['HCAPTCHA_KEY']
$hCaptchaSecret = $_ENV['HCAPTCHA_SECRET']
// $sessionGrants = true; //false = GJP check is done every time; true = GJP check is done once per hour; significantly improves performance, slightly descreases security
// $unregisteredSubmissions = false; //false = green accounts can't upload levels, appear on the leaderboards etc; true = green accounts can do everything
// $preactivateAccounts = true; //false = acounts need to be activated at tools/account/activateAccount.php; true = accounts can log in immediately
//
// /*
// Captcha settings
// Currently the only supported provider is hCaptcha
// https://www.hcaptcha.com/
// */
// $enableCaptcha = false;
// $hCaptchaKey = "";
// $hCaptchaSecret = "";