Skip to content

The headers-more-nginx-module module compilation automatize for different Nginx versions.

License

Notifications You must be signed in to change notification settings

bkayranci/nginx-more-header-module

Repository files navigation

nginx-more-header-module

Build Status

DESCRIPTION

The headers-more-nginx-module module compilation automatize for different Nginx versions.

INSTALLATION

The module can be compiled or downloaded binary.

Binaries

  1. Download ngx_http_headers_more_filter_module.so
  2. Load module to Nginx with load_module

CONFIGURATION

Check official document for configurations.

headers-more-nginx-module

COMPILATION

Dockerfile

docker build --build-arg nginx_version=1.19.0 --build-arg more_header_module_version=v0.33 -t bkayranci/nginx-more-header-module .

docker-compose

docker-compose build

DroneCI

Check it on DroneCI Cloud or Github Releases

EXAMPLES

Example Dockerfile

FROM bkayranci/nginx-more-header-module:nginx-1.19.0_more-header-module-v0.33 AS module
FROM nginx:1.19.0-alpine

COPY --from=module /modules /etc/nginx/modules
COPY default.conf /etc/nginx/conf.d/default.conf
RUN echo 'load_module "/etc/nginx/modules/ngx_http_headers_more_filter_module.so";' > /etc/nginx/nginx.conf.temp
RUN cat /etc/nginx/nginx.conf >> /etc/nginx/nginx.conf.temp
RUN mv /etc/nginx/nginx.conf.temp /etc/nginx/nginx.conf

Example Project

git clone https://github.com/bkayranci/nginx-more-header-module.git
cd nginx-more-header-module/example
docker-compose up -d

Screenshot

screenshoot

LICENSE

GNU GPLv3

About

The headers-more-nginx-module module compilation automatize for different Nginx versions.

Topics

Resources

License

Stars

Watchers

Forks