Skip to content

Commit 3de90b3

Browse files
committed
nginx: add http_headers_more_filter package
1 parent c951a97 commit 3de90b3

2 files changed

Lines changed: 68 additions & 2 deletions

File tree

nginx-mainline.yaml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ pipeline:
8787
expected-commit: cb85fbbfbad6adf5ce71ed4f9b585f498c05c19d
8888
destination: nginx-mainline
8989

90+
- uses: git-checkout
91+
with:
92+
repository: https://github.com/openresty/headers-more-nginx-module.git
93+
tag: v0.39
94+
expected-commit: 2b1debde426783b8f42246149d3638644a6347cb
95+
destination: headers-more-src
96+
9097
- name: configure
9198
working-directory: nginx-mainline
9299
runs: |
@@ -139,7 +146,8 @@ pipeline:
139146
--with-stream_ssl_module \
140147
--with-stream_realip_module \
141148
--with-stream_geoip_module=dynamic \
142-
--with-stream_ssl_preread_module
149+
--with-stream_ssl_preread_module \
150+
--add-dynamic-module=../headers-more-src
143151
144152
- working-directory: nginx-mainline
145153
runs: |
@@ -453,6 +461,31 @@ subpackages:
453461
- runs: |
454462
readlink -v /etc/nginx/conf.d/default.conf
455463
464+
- name: ${{package.name}}-mod-http_headers_more_filter
465+
description: Nginx third-party module http_headers_more_filter
466+
dependencies:
467+
provides:
468+
- nginx-mod-http_headers_more_filter=${{package.full-version}}
469+
runtime:
470+
- merged-usrsbin
471+
- ${{package.name}}
472+
- wolfi-baselayout
473+
pipeline:
474+
- runs: |
475+
install -d -m 755 \
476+
${{targets.subpkgdir}}/usr/lib/nginx/modules \
477+
${{targets.subpkgdir}}/etc/nginx/modules \
478+
${{targets.subpkgdir}}/var/lib/nginx
479+
480+
ln -sf /usr/lib/nginx/modules ${{targets.subpkgdir}}/var/lib/nginx/modules
481+
482+
mv ${{targets.destdir}}/usr/lib/nginx/modules/ngx_http_headers_more_filter_module.so ${{targets.subpkgdir}}/usr/lib/nginx/modules/
483+
484+
echo "load_module \"modules/ngx_http_headers_more_filter_module.so\";" >> ${{targets.subpkgdir}}/etc/nginx/modules/10_http_headers_more_filter.conf
485+
test:
486+
pipeline:
487+
- uses: test/tw/ldd-check
488+
456489
test:
457490
environment:
458491
accounts:

nginx-stable.yaml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ pipeline:
8484
expected-commit: 073ed33202286a975964c3a08f522bf01dc6fecf
8585
destination: nginx-stable
8686

87+
- uses: git-checkout
88+
with:
89+
repository: https://github.com/openresty/headers-more-nginx-module.git
90+
tag: v0.39
91+
expected-commit: 2b1debde426783b8f42246149d3638644a6347cb
92+
destination: headers-more-src
93+
8794
- name: configure
8895
working-directory: nginx-stable
8996
runs: |
@@ -138,7 +145,8 @@ pipeline:
138145
--with-stream_ssl_module \
139146
--with-stream_realip_module \
140147
--with-stream_geoip_module=dynamic \
141-
--with-stream_ssl_preread_module
148+
--with-stream_ssl_preread_module \
149+
--add-dynamic-module=../headers-more-src
142150
143151
- working-directory: nginx-stable
144152
runs: |
@@ -419,6 +427,31 @@ subpackages:
419427
- runs: |
420428
readlink -v /etc/nginx/conf.d/default.conf
421429
430+
- name: ${{package.name}}-mod-http_headers_more_filter
431+
description: Nginx third-party module http_headers_more_filter
432+
dependencies:
433+
provides:
434+
- nginx-mod-http_headers_more_filter=${{package.full-version}}
435+
runtime:
436+
- merged-usrsbin
437+
- ${{package.name}}
438+
- wolfi-baselayout
439+
pipeline:
440+
- runs: |
441+
install -d -m 755 \
442+
${{targets.subpkgdir}}/usr/lib/nginx/modules \
443+
${{targets.subpkgdir}}/etc/nginx/modules \
444+
${{targets.subpkgdir}}/var/lib/nginx
445+
446+
ln -sf /usr/lib/nginx/modules ${{targets.subpkgdir}}/var/lib/nginx/modules
447+
448+
mv ${{targets.destdir}}/usr/lib/nginx/modules/ngx_http_headers_more_filter_module.so ${{targets.subpkgdir}}/usr/lib/nginx/modules/
449+
450+
echo "load_module \"modules/ngx_http_headers_more_filter_module.so\";" >> ${{targets.subpkgdir}}/etc/nginx/modules/10_http_headers_more_filter.conf
451+
test:
452+
pipeline:
453+
- uses: test/tw/ldd-check
454+
422455
test:
423456
environment:
424457
contents:

0 commit comments

Comments
 (0)