From: Nicolas Boisselier Date: Fri, 10 Feb 2017 09:26:59 +0000 (+0000) Subject: etc/profile.d/ldap.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=801166bb104a36eb990c99404430ff2e68584f2d;p=nb.git etc/profile.d/ldap.sh --- diff --git a/etc/profile.d/ldap.sh b/etc/profile.d/ldap.sh new file mode 100644 index 00000000..514c9142 --- /dev/null +++ b/etc/profile.d/ldap.sh @@ -0,0 +1,5 @@ +which ldapsearch > /dev/null || return + +ldap_config() { + ldapsearch -Y EXTERNAL -H ldapi:/// -b cn=config +} diff --git a/www/dbq/docker-compose.yaml b/www/dbq/docker-compose.yaml index fd1d8ecd..b73ec829 100644 --- a/www/dbq/docker-compose.yaml +++ b/www/dbq/docker-compose.yaml @@ -26,6 +26,8 @@ services: nginx: # NB 27.12.16 entrypoint: sh -c '. /etc/profile && sed -e "s/\(^[\t ]*listen[\t ]*\)localhost:/\1/" -e "s,^\([\t ]*fastcgi_pass[\t ]*\).*,\1php:9000;," $NB_ROOT/www/dbq/etc/nginx/default.conf > /etc/nginx/conf.d/default.conf && exec nginx -g "daemon off; error_log /dev/stdout info;"' # NB 27.12.16 image: nginx:alpine + environment: + NB_ROOT: /opt/nb build: context: ../Docker/nginx/ args: