Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
www/angie-module-testcookie: New angie module
Module is a simple robot mitigation module using cookie based challenge/response technique. Challenge cookies can be set using different methods and can be encrypted and then decrypted at client side with JavaScript. PR: 275299
- Loading branch information
1 parent
d12ba3f
commit 2f3bdc0
Showing
6 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
PORTNAME= angie-module-testcookie | ||
GH_TUPLE= kyprizel:testcookie-nginx-module:64137c2f7e66e8866f56fdecaaf09ac10a034da9:module | ||
|
||
COMMENT= Angie testcookie dynamic module | ||
|
||
LICENSE_FILE= ${WRKSRC_module}/README.markdown | ||
|
||
MASTERDIR= ${.CURDIR}/../../www/angie | ||
|
||
do-install: | ||
${MKDIR} ${STAGEDIR}${DOCSDIR} | ||
${MKDIR} ${STAGEDIR}${MODDIR} | ||
|
||
${INSTALL_LIB} ${WRKSRC}/objs/ngx_http_testcookie_access_module.so \ | ||
${STAGEDIR}${MODDIR} | ||
|
||
${INSTALL_MAN} ${WRKSRC_module}/Changelog ${STAGEDIR}${DOCSDIR} | ||
${INSTALL_MAN} ${WRKSRC_module}/README.markdown ${STAGEDIR}${DOCSDIR} | ||
|
||
do-install-DEBUG-on: | ||
${INSTALL} ${COPY} -m ${_SHAREMODE} \ | ||
${WRKSRC_DEBUG}/objs/ngx_http_testcookie_access_module.so \ | ||
${STAGEDIR}${MODDIR}/ngx_http_testcookie_access_module-debug.so | ||
|
||
.include "${MASTERDIR}/Makefile" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[ | ||
{ type: install | ||
message: <<EOM | ||
|
||
The testcookie dynamic module for Angie has been installed. | ||
To enable this module, add the following to %%PREFIX%%/etc/angie/angie.conf | ||
and reload angie: | ||
|
||
load_module modules/ngx_http_testcookie_access_module.so; | ||
|
||
Please refer to the module documentation for further details: | ||
https://github.com/kyprizel/testcookie-nginx-module | ||
EOM | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Module is a simple robot mitigation module using cookie based | ||
challenge/response technique. Challenge cookies can be set using different | ||
methods and can be encrypted and then decrypted at client side with JavaScript. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
%%DOCSDIR%%/Changelog | ||
%%DOCSDIR%%/README.markdown | ||
%%MODDIR%%/ngx_http_testcookie_access_module.so | ||
%%DEBUG%%%%MODDIR%%/ngx_http_testcookie_access_module-debug.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters