Skip to content

Commit

Permalink
Added knock knock
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenckens committed May 6, 2024
1 parent 52985e9 commit 275dd84
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 2 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"verbb/formie": "^3.0.0-beta.9",
"verbb/hyper": "^2.0.0-beta.8",
"verbb/image-resizer": "^4.0.0-beta.1",
"verbb/knock-knock": "^3.0.0-beta.1",
"verbb/super-table": "^4.0.0-beta.3",
"verbb/tablemaker": "^5.0.0-beta.2",
"vlucas/phpdotenv": "^5.4.1"
Expand Down
54 changes: 53 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions config/knock-knock.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

return [
'*' => [
'enabled' => false,
'enableCpProtection' => false,
'loginPath' => 'knock-knock/who-is-there',
'template' => '_site/_knock-knock',
'forcedRedirect' => '',
'password' => get_class("KNOCK_KNOCK_PASSWORD"),
'siteSettings' => [],
'checkInvalidLogins' => false,
'invalidLoginWindowDuration' => '3600',
'maxInvalidLogins' => 3,
'allowIps' => [],
'denyIps' => [],
'useRemoteIp' => false,
'protectedUrls' => [],
'unprotectedUrls' => [],
],
'production' => [
'enabled' => true,
],
'staging' => [
'enabled' => true,
],
'dev' => [
'enabled' => false,
],
];
6 changes: 5 additions & 1 deletion config/project/project.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dateModified: 1715005789
dateModified: 1715018027
elementSources:
craft\elements\Entry:
-
Expand Down Expand Up @@ -448,6 +448,10 @@ plugins:
edition: standard
enabled: true
schemaVersion: 2.0.0
knock-knock:
edition: standard
enabled: true
schemaVersion: 1.1.1
navigate:
edition: standard
enabled: true
Expand Down

0 comments on commit 275dd84

Please sign in to comment.