Skip to content

Commit

Permalink
www/angie-module-testcookie: New angie module
Browse files Browse the repository at this point in the history
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
lonerr authored and clausecker committed Feb 22, 2024
1 parent d12ba3f commit 2f3bdc0
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 1 deletion.
1 change: 1 addition & 0 deletions www/Makefile
Expand Up @@ -49,6 +49,7 @@
SUBDIR += angie-module-rtmp
SUBDIR += angie-module-set-misc
SUBDIR += angie-module-subs
SUBDIR += angie-module-testcookie
SUBDIR += angie-module-upload
SUBDIR += angie-module-vod
SUBDIR += angie-module-xslt
Expand Down
25 changes: 25 additions & 0 deletions www/angie-module-testcookie/Makefile
@@ -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"
15 changes: 15 additions & 0 deletions www/angie-module-testcookie/files/pkg-message.in
@@ -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
}
]
3 changes: 3 additions & 0 deletions www/angie-module-testcookie/pkg-descr
@@ -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.
4 changes: 4 additions & 0 deletions www/angie-module-testcookie/pkg-plist
@@ -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
4 changes: 3 additions & 1 deletion www/angie/distinfo
@@ -1,4 +1,4 @@
TIMESTAMP = 1700818842
TIMESTAMP = 1700819056
SHA256 (angie-1.3.2.tar.gz) = 636056d60788f8012738eed856733f7515b9cb2de0b002186c5edc820ffafb27
SIZE (angie-1.3.2.tar.gz) = 1483526
SHA256 (kjdev-nginx-auth-jwt-2a2bd643295610606734298e5afc1875203664e1_GH0.tar.gz) = fd540226223625c34d988f7bdc0a485b1e7bf76dec0e61ff8e6d9a4e585b8282
Expand Down Expand Up @@ -43,6 +43,8 @@ SHA256 (openresty-set-misc-nginx-module-v0.33_GH0.tar.gz) = cd5e2cc834bcfa30149e
SIZE (openresty-set-misc-nginx-module-v0.33_GH0.tar.gz) = 30084
SHA256 (yaoweibin-ngx_http_substitutions_filter_module-e12e965ac1837ca709709f9a26f572a54d83430e_GH0.tar.gz) = da2a26aa75884e1216941c7291b6e8b7fc4dd7163700a04191b92060b61fabb3
SIZE (yaoweibin-ngx_http_substitutions_filter_module-e12e965ac1837ca709709f9a26f572a54d83430e_GH0.tar.gz) = 94121
SHA256 (kyprizel-testcookie-nginx-module-64137c2f7e66e8866f56fdecaaf09ac10a034da9_GH0.tar.gz) = 2946fd88157be64f69e29409160cf48a594fd6272c3f4c6b7f170bfa13074ee0
SIZE (kyprizel-testcookie-nginx-module-64137c2f7e66e8866f56fdecaaf09ac10a034da9_GH0.tar.gz) = 20732
SHA256 (fdintino-nginx-upload-module-2.3.0_GH0.tar.gz) = c86e318addb9c88d70fdbd58ff1f6ef6f404a93070f6db8017a1f880c97946c4
SIZE (fdintino-nginx-upload-module-2.3.0_GH0.tar.gz) = 40139
SHA256 (kaltura-nginx-vod-module-1.32_GH0.tar.gz) = 958bbe7084704f9df49f8b71e8b90700591cd3edca7409f74bf0d8721621402f
Expand Down

0 comments on commit 2f3bdc0

Please sign in to comment.