Skip to content

Commit

Permalink
www/angie-module-jwt: Angie JWT dynamic module
Browse files Browse the repository at this point in the history
Module provides JWT validity check funcionality for Angie.

PR:		272999
  • Loading branch information
lonerr authored and clausecker committed Aug 9, 2023
1 parent 8b299de commit 28f5935
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions www/Makefile
Expand Up @@ -32,6 +32,7 @@
SUBDIR += angie-module-cache-purge
SUBDIR += angie-module-geoip2
SUBDIR += angie-module-image-filter
SUBDIR += angie-module-jwt
SUBDIR += anyremote2html
SUBDIR += apache-mode.el
SUBDIR += apache24
Expand Down
27 changes: 27 additions & 0 deletions www/angie-module-jwt/Makefile
@@ -0,0 +1,27 @@
PORTNAME= angie-module-jwt
GH_TUPLE= max-lt:nginx-jwt-module:v3.2.2:module

COMMENT= Angie JWT dynamic module

LIB_DEPENDS= libjansson.so:devel/jansson \
libjwt.so:www/libjwt

MASTERDIR= ${.CURDIR}/../../www/angie

CONFLICTS= www/angie-module-auth-jwt

do-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${MKDIR} ${STAGEDIR}${MODDIR}

${INSTALL_LIB} ${WRKSRC}/objs/ngx_http_auth_jwt_module.so \
${STAGEDIR}${MODDIR}

${INSTALL_MAN} ${WRKSRC_module}/README.md ${STAGEDIR}${DOCSDIR}

do-install-DEBUG-on:
${INSTALL} ${COPY} -m ${_SHAREMODE} \
${WRKSRC_DEBUG}/objs/ngx_http_auth_jwt_module.so \
${STAGEDIR}${MODDIR}/ngx_http_auth_jwt_module-debug.so

.include "${MASTERDIR}/Makefile"
15 changes: 15 additions & 0 deletions www/angie-module-jwt/files/pkg-message.in
@@ -0,0 +1,15 @@
[
{ type: install
message: <<EOM

The jwt 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_auth_jwt_module.so;

Please refer to the module documentation for further details:
https://github.com/max-lt/nginx-jwt-module
EOM
}
]
3 changes: 3 additions & 0 deletions www/angie-module-jwt/pkg-descr
@@ -0,0 +1,3 @@
Module provides JWT validity check functionality for Angie.
Module intends to be as light as possible and to remain simple.
Supports number of key encodings and allows to keep it in a designated file.
3 changes: 3 additions & 0 deletions www/angie-module-jwt/pkg-plist
@@ -0,0 +1,3 @@
%%DOCSDIR%%/README.md
%%MODDIR%%/ngx_http_auth_jwt_module.so
%%DEBUG%%%%MODDIR%%/ngx_http_auth_jwt_module-debug.so

0 comments on commit 28f5935

Please sign in to comment.