Sign inSign up

yinyicao/headers-more-nginx-module

By yinyicao

•Updated over 3 years ago

nginx版本1.22.0的headers-more-nginx-module模块文件

Image
0

151

yinyicao/headers-more-nginx-module repository overview

基于nginx版本1.22.0和headers-more-nginx-module版本0.34打包好的模块文件/ngx_http_headers_more_filter_module.so,该/ngx_http_headers_more_filter_module.so位于根目录。

可以使用类似于下面的方式来使用这个so文件:

  1. nginx.conf第一行:
load_module /etc/nginx/modules/ngx_http_headers_more_filter_module.so;
  1. dockerfile打nginx镜像时把ngx_http_headers_more_filter_module.so从这个镜像复制进去
FROM nginxinc/nginx-unprivileged:1.22.0

USER 0

# Modify timezone
ENV TZ=Asia/Shanghai

# Nginx conf
ADD default.conf /etc/nginx/conf.d/default.conf
ADD nginx.conf /etc/nginx/nginx.conf

RUN echo 'root:changeit' | chpasswd

COPY --from=yinyicao/headers-more-nginx-module:1.22.0-0.34 /ngx_http_headers_more_filter_module.so /etc/nginx/modules/

Tag summary

Content type

Image

Digest

sha256:7db77fa1e…

Size

83.1 kB

Last updated

over 3 years ago

docker pull yinyicao/headers-more-nginx-module:1.22.0-0.34