Skip to content

shyr/nginx_ldap_dockerfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Nginx_ldap_dockerfile

Dockerizing nginx with LDAP module based on centos:7. Because the official nginx docker image does not support LDAP module by itself, you have to get nginx source and compile with LDAP module. This image include nginx-auth-ldap module, so you don't need to compile.

Install

Clone this.

git clone https://github.com/shyr/nginx_ldap_dockerfile.git

You need to have your nginx configuration file. Please modify default.conf and conf/nginx.conf as your environment.

Then you can make you Nginx docker image.

$ docker build -t [YOUR_IMAGE_NAME] .

Nginx Version

A nginx version is specified in Dockerfile. Fix ENV NGINX_VERSION as you want.

Add another modules?

To add another module you need to modify Dockerfile.

  1. Get module source and unzip.
  2. Specify where the module exist with ./configure --add-module=[MODULE PATH] command.

To get more details about nginx configuration, please refer to followings.
http://www.allgoodbits.org/articles/view/29

About

Dockerizing nginx with LDAP module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages