Compare commits
11 Commits
master
...
4e63dfbf4d
| Author | SHA1 | Date | |
|---|---|---|---|
| 4e63dfbf4d | |||
| 4ea4ba9739 | |||
| bbeb59a127 | |||
| 099301f1e5 | |||
| 6ce5117150 | |||
| b1ad728a8b | |||
| d42420dfc2 | |||
| f9e52a63fa | |||
| 9a06d5bc5c | |||
| 7534384473 | |||
| 2890e7ae09 |
@@ -41,7 +41,7 @@ CONTAINERS_TYPES=
|
|||||||
|
|
||||||
|
|
||||||
declare -A DockerServNames # le nom des containers correspondant
|
declare -A DockerServNames # le nom des containers correspondant
|
||||||
DockerServNames=( [cloud]="${nextcloudServName}" [agora]="${mattermostServName}" [wiki]="${dokuwikiServName}" [wp]="${wordpressServName}" [office]="${officeServName}" [paheko]="${pahekoServName}" [castopod]="${castopodServName}" [spip]="${spipServName}" )
|
DockerServNames=( [cloud]="${nextcloudServName}" [agora]="${mattermostServName}" [wiki]="${dokuwikiServName}" [wp]="${wordpressServName}" [office]="${officeServName}" [paheko]="${pahekoServName}" [castopod]="${castopodServName}" [spip]="${spipServName}" [webdav]="${webdavServName}" )
|
||||||
|
|
||||||
declare -A FilterLsVolume # Pour trouver quel volume appartient à quel container
|
declare -A FilterLsVolume # Pour trouver quel volume appartient à quel container
|
||||||
FilterLsVolume=( [cloud]="cloudMain" [agora]="matterConfig" [wiki]="wikiConf" [wp]="wordpress" [castopod]="castopodMedia" [spip]="spip")
|
FilterLsVolume=( [cloud]="cloudMain" [agora]="matterConfig" [wiki]="wikiConf" [wp]="wordpress" [castopod]="castopodMedia" [spip]="spip")
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
KAZ_ROOT=/kaz
|
||||||
|
. $KAZ_ROOT/bin/.commonFunctions.sh
|
||||||
|
setKazVars
|
||||||
|
|
||||||
|
. $DOCKERS_ENV
|
||||||
|
. $KAZ_KEY_DIR/env-ldapServ
|
||||||
|
|
||||||
|
LDAP_IP=$(docker inspect -f '{{.NetworkSettings.Networks.ldapNet.IPAddress}}' ldapServ)
|
||||||
|
|
||||||
|
read -p "quel éditeur ? [vi] " EDITOR
|
||||||
|
EDITOR=${EDITOR:-vi}
|
||||||
|
|
||||||
|
# if [ ${EDITOR} = 'emacs' ]; then
|
||||||
|
# echo "ALERTE ALERTE !!! quelqu'un a voulu utiliser emacs :) :) :)"
|
||||||
|
# exit
|
||||||
|
# fi
|
||||||
|
|
||||||
|
EDITOR=${EDITOR:-vi}
|
||||||
|
export EDITOR=${EDITOR}
|
||||||
|
|
||||||
|
ldapvi -h $LDAP_IP -D "cn=${LDAP_CONFIG_ADMIN_USERNAME},cn=config" -w ${LDAP_CONFIG_ADMIN_PASSWORD} -b cn=config
|
||||||
@@ -41,7 +41,7 @@ CONTAINERS_TYPES=
|
|||||||
|
|
||||||
|
|
||||||
declare -A DockerServNames # le nom des containers correspondant
|
declare -A DockerServNames # le nom des containers correspondant
|
||||||
DockerServNames=( [cloud]="${nextcloudServName}" [agora]="${mattermostServName}" [wiki]="${dokuwikiServName}" [wp]="${wordpressServName}" [office]="${officeServName}" [paheko]="${pahekoServName}" [castopod]="${castopodServName}" [spip]="${spipServName}" )
|
DockerServNames=( [cloud]="${nextcloudServName}" [agora]="${mattermostServName}" [wiki]="${dokuwikiServName}" [wp]="${wordpressServName}" [office]="${officeServName}" [paheko]="${pahekoServName}" [castopod]="${castopodServName}" [spip]="${spipServName}" [webdav]="${webdavServName}")
|
||||||
|
|
||||||
declare -A FilterLsVolume # Pour trouver quel volume appartient à quel container
|
declare -A FilterLsVolume # Pour trouver quel volume appartient à quel container
|
||||||
FilterLsVolume=( [cloud]="cloudMain" [agora]="matterConfig" [wiki]="wikiConf" [wp]="wordpress" [castopod]="castopodMedia" [spip]="spip")
|
FilterLsVolume=( [cloud]="cloudMain" [agora]="matterConfig" [wiki]="wikiConf" [wp]="wordpress" [castopod]="castopodMedia" [spip]="spip")
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ officeHost=office
|
|||||||
padHost=pad
|
padHost=pad
|
||||||
pahekoHost=paheko
|
pahekoHost=paheko
|
||||||
pollarisHost=betakazdate
|
pollarisHost=betakazdate
|
||||||
smtpHost=smtp
|
smtpHost=bidon # on veut pas de base que les prodx puissent envoyer par défaut
|
||||||
snappymailHost=snappymail
|
snappymailHost=snappymail
|
||||||
spipHost=spip
|
spipHost=spip
|
||||||
sympaHost=listes
|
sympaHost=listes
|
||||||
@@ -94,9 +94,11 @@ traefikHost=dashboard
|
|||||||
vaultwardenHost=koffre
|
vaultwardenHost=koffre
|
||||||
vigiloHost=vigilo
|
vigiloHost=vigilo
|
||||||
webHost=
|
webHost=
|
||||||
|
webdavHost=webdav
|
||||||
webmailHost=webmail
|
webmailHost=webmail
|
||||||
wordpressHost=wp
|
wordpressHost=wp
|
||||||
|
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
# ports internes
|
# ports internes
|
||||||
|
|
||||||
@@ -152,6 +154,7 @@ vaultwardenServName=vaultwardenServ
|
|||||||
vaultwardenDBName=vaultwardenDB
|
vaultwardenDBName=vaultwardenDB
|
||||||
vigiloServName=vigiloServ
|
vigiloServName=vigiloServ
|
||||||
vigiloDBName=vigiloDB
|
vigiloDBName=vigiloDB
|
||||||
|
webdavServName=webdavServ
|
||||||
webServName=webServ
|
webServName=webServ
|
||||||
wordpressServName=wpServ
|
wordpressServName=wpServ
|
||||||
wordpressDBName=wpDB
|
wordpressDBName=wpDB
|
||||||
@@ -164,4 +167,4 @@ wordpressDBName=wpDB
|
|||||||
|
|
||||||
##################
|
##################
|
||||||
#qui on envoi le mail d'inscription ?
|
#qui on envoi le mail d'inscription ?
|
||||||
EMAIL_CONTACT=
|
EMAIL_CONTACT=
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ services:
|
|||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
environment:
|
environment:
|
||||||
- MARIADB_AUTO_UPGRADE=1
|
- MARIADB_AUTO_UPGRADE=1
|
||||||
env_file:
|
env_file:
|
||||||
- ../../secret/orgas/${orga}/env-${nextcloudDBName}
|
- ../../secret/orgas/${orga}/env-${nextcloudDBName}
|
||||||
# - ../../secret/orgas/${orga}/env-${mattermostDBName}
|
# - ../../secret/orgas/${orga}/env-${mattermostDBName}
|
||||||
@@ -25,7 +25,7 @@ services:
|
|||||||
#maridb10.5
|
#maridb10.5
|
||||||
#test: ["CMD", 'mysqladmin', 'ping', '-h', 'localhost', '-u', 'root', '-p$$MYSQL_ROOT_PASSWORD' ]
|
#test: ["CMD", 'mysqladmin', 'ping', '-h', 'localhost', '-u', 'root', '-p$$MYSQL_ROOT_PASSWORD' ]
|
||||||
#maridb11.4
|
#maridb11.4
|
||||||
#test: ["CMD", 'healthcheck.sh', '--su-mysql', '--connect', '--innodb_initialized']
|
#test: ["CMD", 'healthcheck.sh', '--su-mysql', '--connect', '--innodb_initialized']
|
||||||
test: ["CMD", "mariadb-admin", "ping", "--silent"]
|
test: ["CMD", "mariadb-admin", "ping", "--silent"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 30s
|
timeout: 30s
|
||||||
@@ -46,8 +46,6 @@ services:
|
|||||||
# condition: service_healthy # on peut mais ca va ralentir le process
|
# condition: service_healthy # on peut mais ca va ralentir le process
|
||||||
links:
|
links:
|
||||||
- db
|
- db
|
||||||
external_links:
|
|
||||||
- ${smtpServName}:${smtpHost}
|
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.${orga}-${nextcloudServName}.rule=Host(`${orga}-${cloudHost}.${domain}`){{FOREIGN_NC}}"
|
- "traefik.http.routers.${orga}-${nextcloudServName}.rule=Host(`${orga}-${cloudHost}.${domain}`){{FOREIGN_NC}}"
|
||||||
@@ -67,8 +65,6 @@ services:
|
|||||||
- ../../secret/orgas/${orga}/env-${nextcloudDBName}
|
- ../../secret/orgas/${orga}/env-${nextcloudDBName}
|
||||||
environment:
|
environment:
|
||||||
- NEXTCLOUD_TRUSTED_DOMAINS=${orga}-${cloudHost}.${domain}
|
- NEXTCLOUD_TRUSTED_DOMAINS=${orga}-${cloudHost}.${domain}
|
||||||
- SMTP_HOST=${smtpHost}
|
|
||||||
- SMTP_PORT=25
|
|
||||||
- MAIL_DOMAIN=${domain}
|
- MAIL_DOMAIN=${domain}
|
||||||
#}}
|
#}}
|
||||||
#{{agora
|
#{{agora
|
||||||
@@ -87,7 +83,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- orgaNet
|
- orgaNet
|
||||||
# - postfixNet
|
# - postfixNet
|
||||||
expose:
|
expose:
|
||||||
- ${matterPort}
|
- ${matterPort}
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
@@ -95,8 +91,6 @@ services:
|
|||||||
# condition: service_healthy # on peut mais ca va ralentir le process
|
# condition: service_healthy # on peut mais ca va ralentir le process
|
||||||
links:
|
links:
|
||||||
- db
|
- db
|
||||||
external_links:
|
|
||||||
- ${smtpServName}:${smtpHost}.${domain}
|
|
||||||
volumes:
|
volumes:
|
||||||
- matterConfig:/mattermost/config:rw
|
- matterConfig:/mattermost/config:rw
|
||||||
- matterData:/mattermost/data:rw
|
- matterData:/mattermost/data:rw
|
||||||
@@ -133,13 +127,11 @@ services:
|
|||||||
# condition: service_healthy # on peut mais ca va ralentir le process
|
# condition: service_healthy # on peut mais ca va ralentir le process
|
||||||
links:
|
links:
|
||||||
- db
|
- db
|
||||||
external_links:
|
|
||||||
- ${smtpServName}:${smtpHost}.${domain}
|
|
||||||
env_file:
|
env_file:
|
||||||
- ../../secret/orgas/${orga}/env-${wordpressServName}
|
- ../../secret/orgas/${orga}/env-${wordpressServName}
|
||||||
environment:
|
environment:
|
||||||
- WORDPRESS_SMTP_HOST=${smtpHost}.${domain}
|
# - WORDPRESS_SMTP_HOST=${smtpHost}.${domain}
|
||||||
- WORDPRESS_SMTP_PORT=25
|
# - WORDPRESS_SMTP_PORT=25
|
||||||
# - WORDPRESS_SMTP_USERNAME
|
# - WORDPRESS_SMTP_USERNAME
|
||||||
# - WORDPRESS_SMTP_PASSWORD
|
# - WORDPRESS_SMTP_PASSWORD
|
||||||
# - WORDPRESS_SMTP_FROM=${orga}-
|
# - WORDPRESS_SMTP_FROM=${orga}-
|
||||||
@@ -169,9 +161,6 @@ services:
|
|||||||
- wikiLogs:/var/log
|
- wikiLogs:/var/log
|
||||||
networks:
|
networks:
|
||||||
- orgaNet
|
- orgaNet
|
||||||
# - postfixNet
|
|
||||||
external_links:
|
|
||||||
- ${smtpServName}:${smtpHost}.${domain}
|
|
||||||
#}}
|
#}}
|
||||||
#{{castopod
|
#{{castopod
|
||||||
castopod:
|
castopod:
|
||||||
@@ -183,14 +172,12 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- orgaNet
|
- orgaNet
|
||||||
# - postfixNet
|
# - postfixNet
|
||||||
expose:
|
expose:
|
||||||
- 8000
|
- 8000
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
links:
|
links:
|
||||||
- db
|
- db
|
||||||
external_links:
|
|
||||||
- ${smtpServName}:${smtpHost}.${domain}
|
|
||||||
volumes:
|
volumes:
|
||||||
- castopodMedia:/var/www/castopod/public/media
|
- castopodMedia:/var/www/castopod/public/media
|
||||||
environment:
|
environment:
|
||||||
@@ -215,7 +202,7 @@ services:
|
|||||||
- orgaNet
|
- orgaNet
|
||||||
env_file:
|
env_file:
|
||||||
- ../../secret/orgas/${orga}/env-${castopodServName}
|
- ../../secret/orgas/${orga}/env-${castopodServName}
|
||||||
command: --requirepass ${castopodRedisPassword}
|
command: --requirepass ${castopodRedisPassword}
|
||||||
#}}
|
#}}
|
||||||
#{{spip
|
#{{spip
|
||||||
spip:
|
spip:
|
||||||
@@ -242,8 +229,26 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- spip:/usr/src/spip
|
- spip:/usr/src/spip
|
||||||
#}}
|
#}}
|
||||||
|
#{{webdav
|
||||||
|
webdav:
|
||||||
|
image: httpd:2.4
|
||||||
|
container_name: ${orga}-${webdavServName}
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- orgaNet
|
||||||
|
environment:
|
||||||
|
#surcharge dans compose.override.yml
|
||||||
|
- LDAP_USERS=
|
||||||
|
- DOMAIN=${domain}
|
||||||
|
- LDAP_ROOT=${ldap_root}
|
||||||
|
volumes:
|
||||||
|
- wordpress:/var/www/webdav
|
||||||
|
- ./webdav-conf/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro
|
||||||
|
- ./webdav-conf/httpd-webdav.conf:/usr/local/apache2/conf/extra/httpd-webdav.conf:ro
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.${orga}-${webdavServName}.rule=Host(`${orga}-${webdavHost}.${domain}`)"
|
||||||
|
#}}
|
||||||
|
|
||||||
|
|
||||||
#{{services
|
#{{services
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
#KAN: ???
|
#KAN: ???
|
||||||
|
|
||||||
#MAJ le 04/06/2026 by fab: créer une entrée orga dans le dns pour simplifier les url (avec utilisation de compose-override.yml)
|
#MAJ le 04/06/2026 by fab: créer une entrée orga dans le dns pour simplifier les url (avec utilisation de compose-override.yml)
|
||||||
|
#MAJ le 16/06/2026 by fab: ajouter le menu +/-webdav
|
||||||
|
|
||||||
|
|
||||||
# XXX pb arret des services retiré
|
# XXX pb arret des services retiré
|
||||||
@@ -40,8 +41,9 @@ usage(){
|
|||||||
echo " +/- matter*|agora : on/off agora"
|
echo " +/- matter*|agora : on/off agora"
|
||||||
echo " +/- wiki : on/off wiki"
|
echo " +/- wiki : on/off wiki"
|
||||||
echo " +/- wp|word* : on/off wp"
|
echo " +/- wp|word* : on/off wp"
|
||||||
|
echo " +/- webdav : on/off webdav"
|
||||||
echo " +/- casto*|pod : on/off castopod"
|
echo " +/- casto*|pod : on/off castopod"
|
||||||
echo " +/- spip : on/off spip"
|
echo " +/- spip : on/off spip"
|
||||||
echo " x[GMk] : set quota"
|
echo " x[GMk] : set quota"
|
||||||
echo " OrgaName : name must contain a-z0-9_\-"
|
echo " OrgaName : name must contain a-z0-9_\-"
|
||||||
}
|
}
|
||||||
@@ -149,6 +151,7 @@ export collabora=$(flagInCompose docker-compose.yml collabora: off)
|
|||||||
export agora=$(flagInCompose docker-compose.yml agora: off)
|
export agora=$(flagInCompose docker-compose.yml agora: off)
|
||||||
export wiki=$(flagInCompose docker-compose.yml dokuwiki: off)
|
export wiki=$(flagInCompose docker-compose.yml dokuwiki: off)
|
||||||
export wp=$(flagInCompose docker-compose.yml wordpress: off)
|
export wp=$(flagInCompose docker-compose.yml wordpress: off)
|
||||||
|
export webdav=$(flagInCompose docker-compose.yml webdav: off)
|
||||||
export castopod=$(flagInCompose docker-compose.yml castopod: off)
|
export castopod=$(flagInCompose docker-compose.yml castopod: off)
|
||||||
export spip=$(flagInCompose docker-compose.yml spip: off)
|
export spip=$(flagInCompose docker-compose.yml spip: off)
|
||||||
export db="off"
|
export db="off"
|
||||||
@@ -202,6 +205,9 @@ for ARG in "$@"; do
|
|||||||
'-wp' | '-word'* )
|
'-wp' | '-word'* )
|
||||||
wp="off"
|
wp="off"
|
||||||
;;
|
;;
|
||||||
|
'-webdav' )
|
||||||
|
webdav="off"
|
||||||
|
;;
|
||||||
'-pod' | '-casto'* )
|
'-pod' | '-casto'* )
|
||||||
castopod="off"
|
castopod="off"
|
||||||
;;
|
;;
|
||||||
@@ -233,6 +239,9 @@ for ARG in "$@"; do
|
|||||||
DBaInitialiser="$DBaInitialiser wp"
|
DBaInitialiser="$DBaInitialiser wp"
|
||||||
INITCMD2="$INITCMD2 -wp"
|
INITCMD2="$INITCMD2 -wp"
|
||||||
;;
|
;;
|
||||||
|
'+webdav' )
|
||||||
|
webdav="on"
|
||||||
|
;;
|
||||||
'+pod' | '+casto'* )
|
'+pod' | '+casto'* )
|
||||||
castopod="on"
|
castopod="on"
|
||||||
DBaInitialiser="$DBaInitialiser castopod"
|
DBaInitialiser="$DBaInitialiser castopod"
|
||||||
@@ -316,6 +325,12 @@ if [[ "${wp}" = "on" ]]; then
|
|||||||
else
|
else
|
||||||
DEL_DOMAIN+="${ORGA}-${wordpressHost} "
|
DEL_DOMAIN+="${ORGA}-${wordpressHost} "
|
||||||
fi
|
fi
|
||||||
|
if [[ "${webdav}" = "on" ]]; then
|
||||||
|
DOMAIN_AREA+=" - ${ORGA}-\${webdavServName}:${ORGA}-\${webdavHost}.\${domain}\n"
|
||||||
|
ADD_DOMAIN+="${ORGA}-${webdavHost} "
|
||||||
|
else
|
||||||
|
DEL_DOMAIN+="${ORGA}-${webdavHost} "
|
||||||
|
fi
|
||||||
if [[ "${castopod}" = "on" ]]; then
|
if [[ "${castopod}" = "on" ]]; then
|
||||||
DOMAIN_AREA+=" - ${ORGA}-\${castopodServName}:${ORGA}-\${castopodHost}.\${domain}\n"
|
DOMAIN_AREA+=" - ${ORGA}-\${castopodServName}:${ORGA}-\${castopodHost}.\${domain}\n"
|
||||||
ADD_DOMAIN+="${ORGA}-${castopodHost} "
|
ADD_DOMAIN+="${ORGA}-${castopodHost} "
|
||||||
@@ -431,6 +446,8 @@ if [[ -n "${STAGE_DEFAULT}${STAGE_CREATE}" ]]; then
|
|||||||
ln -sf ../../config/orgaTmpl/wiki-conf/
|
ln -sf ../../config/orgaTmpl/wiki-conf/
|
||||||
ln -sf ../../config/orgaTmpl/reload.sh
|
ln -sf ../../config/orgaTmpl/reload.sh
|
||||||
ln -sf ../../config/orgaTmpl/init-db.sh
|
ln -sf ../../config/orgaTmpl/init-db.sh
|
||||||
|
ln -sf ../../config/orgaTmpl/webdav-conf/
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d "${KAZ_KEY_DIR}/orgas/$ORGA/" ]; then
|
if [ ! -d "${KAZ_KEY_DIR}/orgas/$ORGA/" ]; then
|
||||||
@@ -494,6 +511,9 @@ if [[ -n "${STAGE_DEFAULT}" ]]; then
|
|||||||
wp)
|
wp)
|
||||||
DockerServName="${ORGA}-${wordpressServName}"
|
DockerServName="${ORGA}-${wordpressServName}"
|
||||||
;;
|
;;
|
||||||
|
webdav)
|
||||||
|
DockerServName="${ORGA}-${webdavServName}"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
if checkDockerRunning "${DockerServName}" "${service}"; then
|
if checkDockerRunning "${DockerServName}" "${service}"; then
|
||||||
printKazMsg " - stop ${service}"
|
printKazMsg " - stop ${service}"
|
||||||
|
|||||||
@@ -95,12 +95,13 @@ EOF
|
|||||||
-uroot \
|
-uroot \
|
||||||
-p"$MYSQL_ROOT_PASSWORD" \
|
-p"$MYSQL_ROOT_PASSWORD" \
|
||||||
"$MYSQL_DATABASE" \
|
"$MYSQL_DATABASE" \
|
||||||
-e "update wp_options set option_value='${ORGA}\.${domain}' where option_name in ('siteurl','home');"
|
-e "update wp_options set option_value='https:\/\/${ORGA}\.${domain}' where option_name in ('siteurl','home');"
|
||||||
|
|
||||||
#restart orga
|
#restart orga
|
||||||
docker-compose down && docker-compose up -d
|
docker-compose down && docker-compose up -d
|
||||||
;;
|
;;
|
||||||
"")
|
"")
|
||||||
echo "Aucune option fournie - ARRET"
|
echo "Aucune option fournie"
|
||||||
|
usage
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
DavLockDB /tmp/DAVLock
|
||||||
|
|
||||||
|
Alias / /var/www/webdav/
|
||||||
|
|
||||||
|
<Directory /var/www/webdav/>
|
||||||
|
Dav On
|
||||||
|
|
||||||
|
Options Indexes FollowSymLinks
|
||||||
|
AllowOverride None
|
||||||
|
|
||||||
|
AuthType Basic
|
||||||
|
AuthName "WebDAV LDAP"
|
||||||
|
AuthBasicProvider ldap
|
||||||
|
|
||||||
|
AuthLDAPURL ldaps://ldap.${DOMAIN}:636/ou=users,${LDAP_ROOT}?mail?sub
|
||||||
|
AuthLDAPInitialBindPattern (.+) cn=$1,ou=users,${LDAP_ROOT}
|
||||||
|
AuthLDAPInitialBindAsUser on
|
||||||
|
AuthLDAPCompareAsUser on
|
||||||
|
AuthLDAPSearchAsUser on
|
||||||
|
|
||||||
|
#variable présente dans le docker-compose.yml de l'orga
|
||||||
|
Require ldap-user ${LDAP_USERS}
|
||||||
|
|
||||||
|
</Directory>
|
||||||
@@ -0,0 +1,565 @@
|
|||||||
|
#
|
||||||
|
# This is the main Apache HTTP server configuration file. It contains the
|
||||||
|
# configuration directives that give the server its instructions.
|
||||||
|
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
|
||||||
|
# In particular, see
|
||||||
|
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
|
||||||
|
# for a discussion of each configuration directive.
|
||||||
|
#
|
||||||
|
# Do NOT simply read the instructions in here without understanding
|
||||||
|
# what they do. They're here only as hints or reminders. If you are unsure
|
||||||
|
# consult the online docs. You have been warned.
|
||||||
|
#
|
||||||
|
# Configuration and logfile names: If the filenames you specify for many
|
||||||
|
# of the server's control files begin with "/" (or "drive:/" for Win32), the
|
||||||
|
# server will use that explicit path. If the filenames do *not* begin
|
||||||
|
# with "/", the value of ServerRoot is prepended -- so "logs/access_log"
|
||||||
|
# with ServerRoot set to "/usr/local/apache2" will be interpreted by the
|
||||||
|
# server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
|
||||||
|
# will be interpreted as '/logs/access_log'.
|
||||||
|
|
||||||
|
#
|
||||||
|
# ServerRoot: The top of the directory tree under which the server's
|
||||||
|
# configuration, error, and log files are kept.
|
||||||
|
#
|
||||||
|
# Do not add a slash at the end of the directory path. If you point
|
||||||
|
# ServerRoot at a non-local disk, be sure to specify a local disk on the
|
||||||
|
# Mutex directive, if file-based mutexes are used. If you wish to share the
|
||||||
|
# same ServerRoot for multiple httpd daemons, you will need to change at
|
||||||
|
# least PidFile.
|
||||||
|
#
|
||||||
|
ServerRoot "/usr/local/apache2"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Mutex: Allows you to set the mutex mechanism and mutex file directory
|
||||||
|
# for individual mutexes, or change the global defaults
|
||||||
|
#
|
||||||
|
# Uncomment and change the directory if mutexes are file-based and the default
|
||||||
|
# mutex file directory is not on a local disk or is not appropriate for some
|
||||||
|
# other reason.
|
||||||
|
#
|
||||||
|
# Mutex default:logs
|
||||||
|
|
||||||
|
#
|
||||||
|
# Listen: Allows you to bind Apache to specific IP addresses and/or
|
||||||
|
# ports, instead of the default. See also the <VirtualHost>
|
||||||
|
# directive.
|
||||||
|
#
|
||||||
|
# Change this to Listen on specific IP addresses as shown below to
|
||||||
|
# prevent Apache from glomming onto all bound IP addresses.
|
||||||
|
#
|
||||||
|
#Listen 12.34.56.78:80
|
||||||
|
Listen 80
|
||||||
|
|
||||||
|
#
|
||||||
|
# Dynamic Shared Object (DSO) Support
|
||||||
|
#
|
||||||
|
# To be able to use the functionality of a module which was built as a DSO you
|
||||||
|
# have to place corresponding `LoadModule' lines at this location so the
|
||||||
|
# directives contained in it are actually available _before_ they are used.
|
||||||
|
# Statically compiled modules (those listed by `httpd -l') do not need
|
||||||
|
# to be loaded here.
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# LoadModule foo_module modules/mod_foo.so
|
||||||
|
#
|
||||||
|
LoadModule mpm_event_module modules/mod_mpm_event.so
|
||||||
|
#LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
|
||||||
|
#LoadModule mpm_worker_module modules/mod_mpm_worker.so
|
||||||
|
LoadModule authn_file_module modules/mod_authn_file.so
|
||||||
|
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
|
||||||
|
#LoadModule authn_anon_module modules/mod_authn_anon.so
|
||||||
|
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
|
||||||
|
#LoadModule authn_socache_module modules/mod_authn_socache.so
|
||||||
|
LoadModule authn_core_module modules/mod_authn_core.so
|
||||||
|
LoadModule authz_host_module modules/mod_authz_host.so
|
||||||
|
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
|
||||||
|
LoadModule authz_user_module modules/mod_authz_user.so
|
||||||
|
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
|
||||||
|
#LoadModule authz_owner_module modules/mod_authz_owner.so
|
||||||
|
#LoadModule authz_dbd_module modules/mod_authz_dbd.so
|
||||||
|
LoadModule authz_core_module modules/mod_authz_core.so
|
||||||
|
|
||||||
|
#ajouter by fab
|
||||||
|
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
|
||||||
|
|
||||||
|
#LoadModule authnz_fcgi_module modules/mod_authnz_fcgi.so
|
||||||
|
LoadModule access_compat_module modules/mod_access_compat.so
|
||||||
|
LoadModule auth_basic_module modules/mod_auth_basic.so
|
||||||
|
#LoadModule auth_form_module modules/mod_auth_form.so
|
||||||
|
#LoadModule auth_digest_module modules/mod_auth_digest.so
|
||||||
|
#LoadModule allowmethods_module modules/mod_allowmethods.so
|
||||||
|
#LoadModule isapi_module modules/mod_isapi.so
|
||||||
|
#LoadModule file_cache_module modules/mod_file_cache.so
|
||||||
|
#LoadModule cache_module modules/mod_cache.so
|
||||||
|
#LoadModule cache_disk_module modules/mod_cache_disk.so
|
||||||
|
#LoadModule cache_socache_module modules/mod_cache_socache.so
|
||||||
|
#LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
|
||||||
|
#LoadModule socache_dbm_module modules/mod_socache_dbm.so
|
||||||
|
#LoadModule socache_memcache_module modules/mod_socache_memcache.so
|
||||||
|
#LoadModule socache_redis_module modules/mod_socache_redis.so
|
||||||
|
#LoadModule watchdog_module modules/mod_watchdog.so
|
||||||
|
#LoadModule macro_module modules/mod_macro.so
|
||||||
|
#LoadModule dbd_module modules/mod_dbd.so
|
||||||
|
#LoadModule bucketeer_module modules/mod_bucketeer.so
|
||||||
|
#LoadModule dumpio_module modules/mod_dumpio.so
|
||||||
|
#LoadModule echo_module modules/mod_echo.so
|
||||||
|
#LoadModule example_hooks_module modules/mod_example_hooks.so
|
||||||
|
#LoadModule case_filter_module modules/mod_case_filter.so
|
||||||
|
#LoadModule case_filter_in_module modules/mod_case_filter_in.so
|
||||||
|
#LoadModule example_ipc_module modules/mod_example_ipc.so
|
||||||
|
#LoadModule buffer_module modules/mod_buffer.so
|
||||||
|
#LoadModule data_module modules/mod_data.so
|
||||||
|
#LoadModule ratelimit_module modules/mod_ratelimit.so
|
||||||
|
LoadModule reqtimeout_module modules/mod_reqtimeout.so
|
||||||
|
#LoadModule ext_filter_module modules/mod_ext_filter.so
|
||||||
|
#LoadModule request_module modules/mod_request.so
|
||||||
|
#LoadModule include_module modules/mod_include.so
|
||||||
|
LoadModule filter_module modules/mod_filter.so
|
||||||
|
#LoadModule reflector_module modules/mod_reflector.so
|
||||||
|
#LoadModule substitute_module modules/mod_substitute.so
|
||||||
|
#LoadModule sed_module modules/mod_sed.so
|
||||||
|
#LoadModule charset_lite_module modules/mod_charset_lite.so
|
||||||
|
#LoadModule deflate_module modules/mod_deflate.so
|
||||||
|
#LoadModule xml2enc_module modules/mod_xml2enc.so
|
||||||
|
#LoadModule proxy_html_module modules/mod_proxy_html.so
|
||||||
|
#LoadModule brotli_module modules/mod_brotli.so
|
||||||
|
LoadModule mime_module modules/mod_mime.so
|
||||||
|
|
||||||
|
#ajouté by fab
|
||||||
|
LoadModule ldap_module modules/mod_ldap.so
|
||||||
|
|
||||||
|
LoadModule log_config_module modules/mod_log_config.so
|
||||||
|
#LoadModule log_debug_module modules/mod_log_debug.so
|
||||||
|
#LoadModule log_forensic_module modules/mod_log_forensic.so
|
||||||
|
#LoadModule logio_module modules/mod_logio.so
|
||||||
|
#LoadModule lua_module modules/mod_lua.so
|
||||||
|
LoadModule env_module modules/mod_env.so
|
||||||
|
#LoadModule mime_magic_module modules/mod_mime_magic.so
|
||||||
|
#LoadModule cern_meta_module modules/mod_cern_meta.so
|
||||||
|
#LoadModule expires_module modules/mod_expires.so
|
||||||
|
LoadModule headers_module modules/mod_headers.so
|
||||||
|
#LoadModule ident_module modules/mod_ident.so
|
||||||
|
#LoadModule usertrack_module modules/mod_usertrack.so
|
||||||
|
#LoadModule unique_id_module modules/mod_unique_id.so
|
||||||
|
LoadModule setenvif_module modules/mod_setenvif.so
|
||||||
|
LoadModule version_module modules/mod_version.so
|
||||||
|
#LoadModule remoteip_module modules/mod_remoteip.so
|
||||||
|
#LoadModule proxy_module modules/mod_proxy.so
|
||||||
|
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
|
||||||
|
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
|
||||||
|
#LoadModule proxy_http_module modules/mod_proxy_http.so
|
||||||
|
#LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
|
||||||
|
#LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
|
||||||
|
#LoadModule proxy_uwsgi_module modules/mod_proxy_uwsgi.so
|
||||||
|
#LoadModule proxy_fdpass_module modules/mod_proxy_fdpass.so
|
||||||
|
#LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
|
||||||
|
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
|
||||||
|
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
|
||||||
|
#LoadModule proxy_express_module modules/mod_proxy_express.so
|
||||||
|
#LoadModule proxy_hcheck_module modules/mod_proxy_hcheck.so
|
||||||
|
#LoadModule session_module modules/mod_session.so
|
||||||
|
#LoadModule session_cookie_module modules/mod_session_cookie.so
|
||||||
|
#LoadModule session_crypto_module modules/mod_session_crypto.so
|
||||||
|
#LoadModule session_dbd_module modules/mod_session_dbd.so
|
||||||
|
#LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
|
||||||
|
#LoadModule slotmem_plain_module modules/mod_slotmem_plain.so
|
||||||
|
#LoadModule ssl_module modules/mod_ssl.so
|
||||||
|
#LoadModule optional_hook_export_module modules/mod_optional_hook_export.so
|
||||||
|
#LoadModule optional_hook_import_module modules/mod_optional_hook_import.so
|
||||||
|
#LoadModule optional_fn_import_module modules/mod_optional_fn_import.so
|
||||||
|
#LoadModule optional_fn_export_module modules/mod_optional_fn_export.so
|
||||||
|
#LoadModule dialup_module modules/mod_dialup.so
|
||||||
|
#LoadModule http2_module modules/mod_http2.so
|
||||||
|
#LoadModule proxy_http2_module modules/mod_proxy_http2.so
|
||||||
|
#LoadModule md_module modules/mod_md.so
|
||||||
|
#LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
|
||||||
|
#LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so
|
||||||
|
#LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so
|
||||||
|
#LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so
|
||||||
|
LoadModule unixd_module modules/mod_unixd.so
|
||||||
|
#LoadModule heartbeat_module modules/mod_heartbeat.so
|
||||||
|
#LoadModule heartmonitor_module modules/mod_heartmonitor.so
|
||||||
|
|
||||||
|
#ajouté by fab
|
||||||
|
LoadModule dav_module modules/mod_dav.so
|
||||||
|
|
||||||
|
LoadModule status_module modules/mod_status.so
|
||||||
|
LoadModule autoindex_module modules/mod_autoindex.so
|
||||||
|
#LoadModule asis_module modules/mod_asis.so
|
||||||
|
#LoadModule info_module modules/mod_info.so
|
||||||
|
#LoadModule suexec_module modules/mod_suexec.so
|
||||||
|
<IfModule !mpm_prefork_module>
|
||||||
|
#LoadModule cgid_module modules/mod_cgid.so
|
||||||
|
</IfModule>
|
||||||
|
<IfModule mpm_prefork_module>
|
||||||
|
#LoadModule cgi_module modules/mod_cgi.so
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
#ajoutés by fab
|
||||||
|
LoadModule dav_fs_module modules/mod_dav_fs.so
|
||||||
|
LoadModule dav_lock_module modules/mod_dav_lock.so
|
||||||
|
|
||||||
|
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
|
||||||
|
#LoadModule negotiation_module modules/mod_negotiation.so
|
||||||
|
LoadModule dir_module modules/mod_dir.so
|
||||||
|
#LoadModule imagemap_module modules/mod_imagemap.so
|
||||||
|
#LoadModule actions_module modules/mod_actions.so
|
||||||
|
#LoadModule speling_module modules/mod_speling.so
|
||||||
|
#LoadModule userdir_module modules/mod_userdir.so
|
||||||
|
LoadModule alias_module modules/mod_alias.so
|
||||||
|
#LoadModule rewrite_module modules/mod_rewrite.so
|
||||||
|
|
||||||
|
<IfModule unixd_module>
|
||||||
|
#
|
||||||
|
# If you wish httpd to run as a different user or group, you must run
|
||||||
|
# httpd as root initially and it will switch.
|
||||||
|
#
|
||||||
|
# User/Group: The name (or #number) of the user/group to run httpd as.
|
||||||
|
# It is usually good practice to create a dedicated user and group for
|
||||||
|
# running httpd, as with most system services.
|
||||||
|
#
|
||||||
|
User www-data
|
||||||
|
Group www-data
|
||||||
|
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
# 'Main' server configuration
|
||||||
|
#
|
||||||
|
# The directives in this section set up the values used by the 'main'
|
||||||
|
# server, which responds to any requests that aren't handled by a
|
||||||
|
# <VirtualHost> definition. These values also provide defaults for
|
||||||
|
# any <VirtualHost> containers you may define later in the file.
|
||||||
|
#
|
||||||
|
# All of these directives may appear inside <VirtualHost> containers,
|
||||||
|
# in which case these default settings will be overridden for the
|
||||||
|
# virtual host being defined.
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# ServerAdmin: Your address, where problems with the server should be
|
||||||
|
# e-mailed. This address appears on some server-generated pages, such
|
||||||
|
# as error documents. e.g. admin@your-domain.com
|
||||||
|
#
|
||||||
|
ServerAdmin you@example.com
|
||||||
|
|
||||||
|
#
|
||||||
|
# ServerName gives the name and port that the server uses to identify itself.
|
||||||
|
# This can often be determined automatically, but we recommend you specify
|
||||||
|
# it explicitly to prevent problems during startup.
|
||||||
|
#
|
||||||
|
# If your host doesn't have a registered DNS name, enter its IP address here.
|
||||||
|
#
|
||||||
|
#ServerName www.example.com:80
|
||||||
|
|
||||||
|
#
|
||||||
|
# Deny access to the entirety of your server's filesystem. You must
|
||||||
|
# explicitly permit access to web content directories in other
|
||||||
|
# <Directory> blocks below.
|
||||||
|
#
|
||||||
|
<Directory />
|
||||||
|
AllowOverride none
|
||||||
|
Require all denied
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Note that from this point forward you must specifically allow
|
||||||
|
# particular features to be enabled - so if something's not working as
|
||||||
|
# you might expect, make sure that you have specifically enabled it
|
||||||
|
# below.
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# DocumentRoot: The directory out of which you will serve your
|
||||||
|
# documents. By default, all requests are taken from this directory, but
|
||||||
|
# symbolic links and aliases may be used to point to other locations.
|
||||||
|
#
|
||||||
|
DocumentRoot "/usr/local/apache2/htdocs"
|
||||||
|
<Directory "/usr/local/apache2/htdocs">
|
||||||
|
#
|
||||||
|
# Possible values for the Options directive are "None", "All",
|
||||||
|
# or any combination of:
|
||||||
|
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
|
||||||
|
#
|
||||||
|
# Note that "MultiViews" must be named *explicitly* --- "Options All"
|
||||||
|
# doesn't give it to you.
|
||||||
|
#
|
||||||
|
# The Options directive is both complicated and important. Please see
|
||||||
|
# http://httpd.apache.org/docs/2.4/mod/core.html#options
|
||||||
|
# for more information.
|
||||||
|
#
|
||||||
|
Options Indexes FollowSymLinks
|
||||||
|
|
||||||
|
#
|
||||||
|
# AllowOverride controls what directives may be placed in .htaccess files.
|
||||||
|
# It can be "All", "None", or any combination of the keywords:
|
||||||
|
# AllowOverride FileInfo AuthConfig Limit
|
||||||
|
#
|
||||||
|
AllowOverride None
|
||||||
|
|
||||||
|
#
|
||||||
|
# Controls who can get stuff from this server.
|
||||||
|
#
|
||||||
|
Require all granted
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
#
|
||||||
|
# DirectoryIndex: sets the file that Apache will serve if a directory
|
||||||
|
# is requested.
|
||||||
|
#
|
||||||
|
<IfModule dir_module>
|
||||||
|
DirectoryIndex index.html
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
#
|
||||||
|
# The following lines prevent .htaccess and .htpasswd files from being
|
||||||
|
# viewed by Web clients.
|
||||||
|
#
|
||||||
|
<Files ".ht*">
|
||||||
|
Require all denied
|
||||||
|
</Files>
|
||||||
|
|
||||||
|
#
|
||||||
|
# ErrorLog: The location of the error log file.
|
||||||
|
# If you do not specify an ErrorLog directive within a <VirtualHost>
|
||||||
|
# container, error messages relating to that virtual host will be
|
||||||
|
# logged here. If you *do* define an error logfile for a <VirtualHost>
|
||||||
|
# container, that host's errors will be logged there and not here.
|
||||||
|
#
|
||||||
|
ErrorLog /proc/self/fd/2
|
||||||
|
|
||||||
|
#
|
||||||
|
# LogLevel: Control the number of messages logged to the error_log.
|
||||||
|
# Possible values include: debug, info, notice, warn, error, crit,
|
||||||
|
# alert, emerg.
|
||||||
|
#
|
||||||
|
LogLevel warn
|
||||||
|
|
||||||
|
<IfModule log_config_module>
|
||||||
|
#
|
||||||
|
# The following directives define some format nicknames for use with
|
||||||
|
# a CustomLog directive (see below).
|
||||||
|
#
|
||||||
|
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
||||||
|
LogFormat "%h %l %u %t \"%r\" %>s %b" common
|
||||||
|
|
||||||
|
<IfModule logio_module>
|
||||||
|
# You need to enable mod_logio.c to use %I and %O
|
||||||
|
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
#
|
||||||
|
# The location and format of the access logfile (Common Logfile Format).
|
||||||
|
# If you do not define any access logfiles within a <VirtualHost>
|
||||||
|
# container, they will be logged here. Contrariwise, if you *do*
|
||||||
|
# define per-<VirtualHost> access logfiles, transactions will be
|
||||||
|
# logged therein and *not* in this file.
|
||||||
|
#
|
||||||
|
CustomLog /proc/self/fd/1 common
|
||||||
|
|
||||||
|
#
|
||||||
|
# If you prefer a logfile with access, agent, and referer information
|
||||||
|
# (Combined Logfile Format) you can use the following directive.
|
||||||
|
#
|
||||||
|
#CustomLog "logs/access_log" combined
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
<IfModule alias_module>
|
||||||
|
#
|
||||||
|
# Redirect: Allows you to tell clients about documents that used to
|
||||||
|
# exist in your server's namespace, but do not anymore. The client
|
||||||
|
# will make a new request for the document at its new location.
|
||||||
|
# Example:
|
||||||
|
# Redirect permanent /foo http://www.example.com/bar
|
||||||
|
|
||||||
|
#
|
||||||
|
# Alias: Maps web paths into filesystem paths and is used to
|
||||||
|
# access content that does not live under the DocumentRoot.
|
||||||
|
# Example:
|
||||||
|
# Alias /webpath /full/filesystem/path
|
||||||
|
#
|
||||||
|
# If you include a trailing / on /webpath then the server will
|
||||||
|
# require it to be present in the URL. You will also likely
|
||||||
|
# need to provide a <Directory> section to allow access to
|
||||||
|
# the filesystem path.
|
||||||
|
|
||||||
|
#
|
||||||
|
# ScriptAlias: This controls which directories contain server scripts.
|
||||||
|
# ScriptAliases are essentially the same as Aliases, except that
|
||||||
|
# documents in the target directory are treated as applications and
|
||||||
|
# run by the server when requested rather than as documents sent to the
|
||||||
|
# client. The same rules about trailing "/" apply to ScriptAlias
|
||||||
|
# directives as to Alias.
|
||||||
|
#
|
||||||
|
ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
|
||||||
|
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
<IfModule cgid_module>
|
||||||
|
#
|
||||||
|
# ScriptSock: On threaded servers, designate the path to the UNIX
|
||||||
|
# socket used to communicate with the CGI daemon of mod_cgid.
|
||||||
|
#
|
||||||
|
#Scriptsock cgisock
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
#
|
||||||
|
# "/usr/local/apache2/cgi-bin" should be changed to whatever your ScriptAliased
|
||||||
|
# CGI directory exists, if you have that configured.
|
||||||
|
#
|
||||||
|
<Directory "/usr/local/apache2/cgi-bin">
|
||||||
|
AllowOverride None
|
||||||
|
Options None
|
||||||
|
Require all granted
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
<IfModule headers_module>
|
||||||
|
#
|
||||||
|
# Avoid passing HTTP_PROXY environment to CGI's on this or any proxied
|
||||||
|
# backend servers which have lingering "httpoxy" defects.
|
||||||
|
# 'Proxy' request header is undefined by the IETF, not listed by IANA
|
||||||
|
#
|
||||||
|
RequestHeader unset Proxy early
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
<IfModule mime_module>
|
||||||
|
#
|
||||||
|
# TypesConfig points to the file containing the list of mappings from
|
||||||
|
# filename extension to MIME-type.
|
||||||
|
#
|
||||||
|
TypesConfig conf/mime.types
|
||||||
|
|
||||||
|
#
|
||||||
|
# AddType allows you to add to or override the MIME configuration
|
||||||
|
# file specified in TypesConfig for specific file types.
|
||||||
|
#
|
||||||
|
#AddType application/x-gzip .tgz
|
||||||
|
#
|
||||||
|
# AddEncoding allows you to have certain browsers uncompress
|
||||||
|
# information on the fly. Note: Not all browsers support this.
|
||||||
|
#
|
||||||
|
#AddEncoding x-compress .Z
|
||||||
|
#AddEncoding x-gzip .gz .tgz
|
||||||
|
#
|
||||||
|
# If the AddEncoding directives above are commented-out, then you
|
||||||
|
# probably should define those extensions to indicate media types:
|
||||||
|
#
|
||||||
|
AddType application/x-compress .Z
|
||||||
|
AddType application/x-gzip .gz .tgz
|
||||||
|
|
||||||
|
#
|
||||||
|
# AddHandler allows you to map certain file extensions to "handlers":
|
||||||
|
# actions unrelated to filetype. These can be either built into the server
|
||||||
|
# or added with the Action directive (see below)
|
||||||
|
#
|
||||||
|
# To use CGI scripts outside of ScriptAliased directories:
|
||||||
|
# (You will also need to add "ExecCGI" to the "Options" directive.)
|
||||||
|
#
|
||||||
|
#AddHandler cgi-script .cgi
|
||||||
|
|
||||||
|
# For type maps (negotiated resources):
|
||||||
|
#AddHandler type-map var
|
||||||
|
|
||||||
|
#
|
||||||
|
# Filters allow you to process content before it is sent to the client.
|
||||||
|
#
|
||||||
|
# To parse .shtml files for server-side includes (SSI):
|
||||||
|
# (You will also need to add "Includes" to the "Options" directive.)
|
||||||
|
#
|
||||||
|
#AddType text/html .shtml
|
||||||
|
#AddOutputFilter INCLUDES .shtml
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
#
|
||||||
|
# The mod_mime_magic module allows the server to use various hints from the
|
||||||
|
# contents of the file itself to determine its type. The MIMEMagicFile
|
||||||
|
# directive tells the module where the hint definitions are located.
|
||||||
|
#
|
||||||
|
#MIMEMagicFile conf/magic
|
||||||
|
|
||||||
|
#
|
||||||
|
# Customizable error responses come in three flavors:
|
||||||
|
# 1) plain text 2) local redirects 3) external redirects
|
||||||
|
#
|
||||||
|
# Some examples:
|
||||||
|
#ErrorDocument 500 "The server made a boo boo."
|
||||||
|
#ErrorDocument 404 /missing.html
|
||||||
|
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
|
||||||
|
#ErrorDocument 402 http://www.example.com/subscription_info.html
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# MaxRanges: Maximum number of Ranges in a request before
|
||||||
|
# returning the entire resource, or one of the special
|
||||||
|
# values 'default', 'none' or 'unlimited'.
|
||||||
|
# Default setting is to accept 200 Ranges.
|
||||||
|
#MaxRanges unlimited
|
||||||
|
|
||||||
|
#
|
||||||
|
# EnableMMAP and EnableSendfile: On systems that support it,
|
||||||
|
# memory-mapping or the sendfile syscall may be used to deliver
|
||||||
|
# files. This usually improves server performance, but must
|
||||||
|
# be turned off when serving from networked-mounted
|
||||||
|
# filesystems or if support for these functions is otherwise
|
||||||
|
# broken on your system.
|
||||||
|
# Defaults: EnableMMAP On, EnableSendfile Off
|
||||||
|
#
|
||||||
|
#EnableMMAP off
|
||||||
|
#EnableSendfile on
|
||||||
|
|
||||||
|
# Supplemental configuration
|
||||||
|
#
|
||||||
|
# The configuration files in the conf/extra/ directory can be
|
||||||
|
# included to add extra features or to modify the default configuration of
|
||||||
|
# the server, or you may simply copy their contents here and change as
|
||||||
|
# necessary.
|
||||||
|
|
||||||
|
# Server-pool management (MPM specific)
|
||||||
|
#Include conf/extra/httpd-mpm.conf
|
||||||
|
|
||||||
|
# Multi-language error messages
|
||||||
|
#Include conf/extra/httpd-multilang-errordoc.conf
|
||||||
|
|
||||||
|
# Fancy directory listings
|
||||||
|
#Include conf/extra/httpd-autoindex.conf
|
||||||
|
|
||||||
|
# Language settings
|
||||||
|
#Include conf/extra/httpd-languages.conf
|
||||||
|
|
||||||
|
# User home directories
|
||||||
|
#Include conf/extra/httpd-userdir.conf
|
||||||
|
|
||||||
|
# Real-time info on requests and configuration
|
||||||
|
#Include conf/extra/httpd-info.conf
|
||||||
|
|
||||||
|
# Virtual hosts
|
||||||
|
#Include conf/extra/httpd-vhosts.conf
|
||||||
|
|
||||||
|
# Local access to the Apache HTTP Server Manual
|
||||||
|
#Include conf/extra/httpd-manual.conf
|
||||||
|
|
||||||
|
# Distributed authoring and versioning (WebDAV)
|
||||||
|
|
||||||
|
#ajouté by fab
|
||||||
|
Include conf/extra/httpd-webdav.conf
|
||||||
|
|
||||||
|
# Various default settings
|
||||||
|
#Include conf/extra/httpd-default.conf
|
||||||
|
|
||||||
|
# Configure mod_proxy_html to understand HTML4/XHTML1
|
||||||
|
<IfModule proxy_html_module>
|
||||||
|
Include conf/extra/proxy-html.conf
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
# Secure (SSL/TLS) connections
|
||||||
|
#Include conf/extra/httpd-ssl.conf
|
||||||
|
#
|
||||||
|
# Note: The following must be present to support
|
||||||
|
# starting without SSL on platforms with no /dev/random equivalent
|
||||||
|
# but a statically compiled-in mod_ssl.
|
||||||
|
#
|
||||||
|
<IfModule ssl_module>
|
||||||
|
SSLRandomSeed startup builtin
|
||||||
|
SSLRandomSeed connect builtin
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
@@ -14,13 +14,11 @@ $conf['superuser'] = '@admin';
|
|||||||
$conf['manager'] = '@manager';
|
$conf['manager'] = '@manager';
|
||||||
$conf['disableactions'] = 'register';
|
$conf['disableactions'] = 'register';
|
||||||
$conf['remoteuser'] = '';
|
$conf['remoteuser'] = '';
|
||||||
$conf['mailfrom'] = 'dokuwiki@kaz.bzh';
|
|
||||||
$conf['updatecheck'] = 0;
|
$conf['updatecheck'] = 0;
|
||||||
$conf['userewrite'] = '1';
|
$conf['userewrite'] = '1';
|
||||||
$conf['useslash'] = 1;
|
$conf['useslash'] = 1;
|
||||||
$conf['plugin']['ckgedit']['scayt_auto'] = 'on';
|
$conf['plugin']['ckgedit']['scayt_auto'] = 'on';
|
||||||
$conf['plugin']['ckgedit']['scayt_lang'] = 'French/fr_FR';
|
$conf['plugin']['ckgedit']['scayt_lang'] = 'French/fr_FR';
|
||||||
$conf['plugin']['ckgedit']['other_lang'] = 'fr';
|
$conf['plugin']['ckgedit']['other_lang'] = 'fr';
|
||||||
$conf['plugin']['smtp']['smtp_host'] = 'smtp.kaz.bzh';
|
|
||||||
$conf['plugin']['todo']['CheckboxText'] = 0;
|
$conf['plugin']['todo']['CheckboxText'] = 0;
|
||||||
$conf['plugin']['wrap']['restrictionType'] = '1';
|
$conf['plugin']['wrap']['restrictionType'] = '1';
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ olcAccess: {1}to dn.subtree="$LDAPROOT"
|
|||||||
by dn="cn=mobilizon,ou=applications,$LDAPROOT" read
|
by dn="cn=mobilizon,ou=applications,$LDAPROOT" read
|
||||||
by dn="cn=mastodon,ou=applications,$LDAPROOT" read
|
by dn="cn=mastodon,ou=applications,$LDAPROOT" read
|
||||||
by dn="$BINDDN" write
|
by dn="$BINDDN" write
|
||||||
|
by users search
|
||||||
by * none
|
by * none
|
||||||
olcAccess: {2}to *
|
olcAccess: {2}to *
|
||||||
by dn="$BINDDN" write
|
by dn="$BINDDN" write
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ if (!is_dir($user_data_dir)) {
|
|||||||
define('Paheko\DATA_ROOT', $user_data_dir);
|
define('Paheko\DATA_ROOT', $user_data_dir);
|
||||||
|
|
||||||
const PREFER_HTTPS = false;
|
const PREFER_HTTPS = false;
|
||||||
const SMTP_HOST = "__SMTP_HOST__.__DOMAIN__";
|
const SMTP_HOST = "smtp.__DOMAIN__";
|
||||||
const SMTP_USER = null;
|
const SMTP_USER = null;
|
||||||
const API_USER = "__PAHEKO_API_USER__";
|
const API_USER = "__PAHEKO_API_USER__";
|
||||||
const API_PASSWORD = "__PAHEKO_API_PASSWORD__";
|
const API_PASSWORD = "__PAHEKO_API_PASSWORD__";
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ services:
|
|||||||
# - 8086:80
|
# - 8086:80
|
||||||
networks:
|
networks:
|
||||||
- pahekoNet
|
- pahekoNet
|
||||||
- postfixNet
|
|
||||||
external_links:
|
external_links:
|
||||||
- ${smtpServName}:${smtpHost}.${domain}
|
- ${smtpServName}:${smtpHost}.${domain}
|
||||||
labels:
|
labels:
|
||||||
@@ -31,6 +30,3 @@ networks:
|
|||||||
pahekoNet:
|
pahekoNet:
|
||||||
external: true
|
external: true
|
||||||
name: pahekoNet
|
name: pahekoNet
|
||||||
postfixNet:
|
|
||||||
external: true
|
|
||||||
name: postfixNet
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
reverse-proxy:
|
reverse-proxy:
|
||||||
image: traefik:v3.7.1
|
image: traefik:v3.7.5
|
||||||
container_name: ${traefikServName}
|
container_name: ${traefikServName}
|
||||||
restart: ${restartPolicy}
|
restart: ${restartPolicy}
|
||||||
# Enables the web UI and tells Traefik to listen to docker
|
# Enables the web UI and tells Traefik to listen to docker
|
||||||
|
|||||||
Reference in New Issue
Block a user