update documentation

merge-requests/44/head
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

8
dd-ctl
View File

@ -206,19 +206,17 @@ build_compose(){
if [ "$BEHIND_PROXY" = "true" ]; then
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"
else
BEHIND="haproxy.yml"
MODSECURITY="-f dd-waf/docker-compose-parts/haproxy.yml"
HAPROXY_WAF="-f dd-waf/docker-compose-parts/haproxy.yml"
fi
echo ${MODSECURITY} ${HAPROXY_WAF}
# Build compose ymls
docker-compose \
${MODSECURITY} ${HAPROXY_WAF}
\
${MODSECURITY} ${HAPROXY_WAF} \
\
-f dd-sso/docker-compose-parts/$BEHIND \
-f dd-sso/docker-compose-parts/api.yml \
-f dd-sso/docker-compose-parts/keycloak.yml \

View File

@ -37,10 +37,16 @@ Tenemos diferentes ficheros para configurar este servicio
## 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