update documentation

GON-3874-DD-moodle
Manuel Caballero 2022-11-16 16:46:34 +00:00 committed by Evilham
parent 26728a3c72
commit 5f1d0acf27
No known key found for this signature in database
GPG Key ID: AE3EE30D970886BF
2 changed files with 11 additions and 7 deletions

6
dd-ctl
View File

@ -206,18 +206,16 @@ build_compose(){
if [ "$BEHIND_PROXY" = "true" ]; then if [ "$BEHIND_PROXY" = "true" ]; then
BEHIND="haproxy-behind.yml" BEHIND="haproxy-behind.yml"
MODSECURITY="-f dd-waf/docker-compose-parts/haproxy.yml" MODSECURITY="-f dd-waf/docker-compose-parts/modsecurity.yml"
HAPROXY_WAF="-f dd-waf/docker-compose-parts/haproxy.yml" HAPROXY_WAF="-f dd-waf/docker-compose-parts/haproxy.yml"
else else
BEHIND="haproxy.yml" BEHIND="haproxy.yml"
MODSECURITY="-f dd-waf/docker-compose-parts/haproxy.yml"
HAPROXY_WAF="-f dd-waf/docker-compose-parts/haproxy.yml"
fi fi
echo ${MODSECURITY} ${HAPROXY_WAF} echo ${MODSECURITY} ${HAPROXY_WAF}
# Build compose ymls # Build compose ymls
docker-compose \ docker-compose \
${MODSECURITY} ${HAPROXY_WAF} ${MODSECURITY} ${HAPROXY_WAF} \
\ \
-f dd-sso/docker-compose-parts/$BEHIND \ -f dd-sso/docker-compose-parts/$BEHIND \
-f dd-sso/docker-compose-parts/api.yml \ -f dd-sso/docker-compose-parts/api.yml \

View File

@ -37,10 +37,16 @@ Tenemos diferentes ficheros para configurar este servicio
## Instalación ## Instalación
Para instalar el haproxy + modsecurity tendremos que definir a `true` la siguiente variable en el fichero `dd.conf` Para la instalación del haproxy + modsecurity debemos que definir a `true` la variable `BEHIND_PROXY` en el fichero `dd.conf`
``` ```
BEHIND_PROXY=false BEHIND_PROXY=true
```
Ahora tenemos que desplegar el modsecurity + haproxy ejecutando el comando `update` del `dd-ctl`
```
./dd-ctl update
``` ```
## Configuración ## Configuración