Public | Automated Build

Last pushed: 8 months ago
Short Description
Simple static web server from /home/www
Full Description

Simple static file server with LDAP support

You'll need your own nginx.conf file !

docker run --name nginx -p 80:80 \
  -v /home/nginx.conf:/etc/nginx/nginx.conf:ro \
  -v /home/www:/home/www \
  -v /var/log/nginx:/var/log/nginx \
  -d visago/nginx

Serves content in /home/www (on host machine) to the public (with auto-index!)

This nginx docker is cleaned up from (

In the http section add

ldap_server {
  url ldap://,dc=domain,dc=com?uid?sub?(objectClass=person);
  binddn "cn=AD,ou=People,dc=domain,dc=com";
  binddn_passwd "00112233445566"; 
  group_attribute memberUid;
  group_attribute_is_dn on;
  require group cn=Gods,ou=Groups,dc=domain,dc=com;
  require valid_user;
  #satisfy any;

In the server section add

  auth_ldap "LDAP Login";
Docker Pull Command
Source Repository