Skip to content

Commit

Permalink
www/angie-module-headers-more: Angie headers-more dynamic module
Browse files Browse the repository at this point in the history
Module allows to set and clear input and output headers.
This is an enhanced version of the standard headers module because it provides
more utilities like resetting or clearing "builtin headers" like Content-Type,
Content-Length, and Server.

PR:		273462
  • Loading branch information
lonerr authored and clausecker committed Sep 10, 2023
1 parent ed1ed7c commit 8b4c54d
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions www/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
SUBDIR += angie-module-enhanced-memcached
SUBDIR += angie-module-eval
SUBDIR += angie-module-geoip2
SUBDIR += angie-module-headers-more
SUBDIR += angie-module-image-filter
SUBDIR += angie-module-jwt
SUBDIR += angie-module-keyval
Expand Down
24 changes: 24 additions & 0 deletions www/angie-module-headers-more/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
PORTNAME= angie-module-headers-more
GH_TUPLE= openresty:headers-more-nginx-module:v0.34:module

COMMENT= Angie headers-more 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_headers_more_filter_module.so \
${STAGEDIR}${MODDIR}

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

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

.include "${MASTERDIR}/Makefile"
15 changes: 15 additions & 0 deletions www/angie-module-headers-more/files/pkg-message.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{ type: install
message: <<EOM

The headers-more 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_headers_more_filter_module.so;

Please refer to the module documentation for further details:
https://github.com/openresty/headers-more-nginx-module/
EOM
}
]
4 changes: 4 additions & 0 deletions www/angie-module-headers-more/pkg-descr
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Module allows to set and clear input and output headers.
This is an enhanced version of the standard headers module because it provides
more utilities like resetting or clearing "builtin headers" like Content-Type,
Content-Length, and Server.
3 changes: 3 additions & 0 deletions www/angie-module-headers-more/pkg-plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
%%DOCSDIR%%/README.markdown
%%MODDIR%%/ngx_http_headers_more_filter_module.so
%%DEBUG%%%%MODDIR%%/ngx_http_headers_more_filter_module-debug.so

0 comments on commit 8b4c54d

Please sign in to comment.