update documentation
parent
26728a3c72
commit
5f1d0acf27
8
dd-ctl
8
dd-ctl
|
@ -206,19 +206,17 @@ 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 \
|
||||||
-f dd-sso/docker-compose-parts/keycloak.yml \
|
-f dd-sso/docker-compose-parts/keycloak.yml \
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue