Skip to content

Instantly share code, notes, and snippets.

@JayGreentree
Created April 28, 2025 15:37
Show Gist options
  • Save JayGreentree/e329a4b21fef0a320fc19cffb8e3492a to your computer and use it in GitHub Desktop.
Save JayGreentree/e329a4b21fef0a320fc19cffb8e3492a to your computer and use it in GitHub Desktop.
<?php
return [
'*' => [
'enabled' => false,
'enableCpProtection' => false,
'loginPath' => 'restricted-access',
'template' => '_knock-knock.twig',
'siteSettings' => [],
'checkInvalidLogins' => false,
'invalidLoginWindowDuration' => '3600',
'maxInvalidLogins' => 3,
'allowIps' => ['', '127.0.0.1'],
'denyIps' => [],
'useRemoteIp' => true,
'protectedUrls' => [],
'unprotectedUrls' => [''],
],
/*'production' => [
'enabled' => true,
'password' => getenv('SITE_PASSWORD'),
],*/
'staging' => [
'enabled' => true,
'password' => getenv('SITE_PASSWORD'),
],
'dev' => [
'enabled' => false,
'password' => getenv('SITE_PASSWORD'),
]
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment