-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
utilise la directive LocationMatch pour permettre les expressions rég…
…ulières dans les proxypass + ajoute la variable RENATER_SP_HTTPD_PROXYPASS_DISABLEREUSE + ajoute deux hook pour httpd-vhosts.inc.conf + maj apache en version 2.4.58 + refactoring
- Loading branch information
Showing
6 changed files
with
76 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,31 +14,55 @@ services: | |
volumes: | ||
- type: bind | ||
source: ./volume/httpd-vhosts.inc.conf | ||
target: /usr/local/apache2/conf/extra/httpd-vhosts.inc.conf | ||
target: /usr/local/apache2/conf/extra/httpd-vhosts-begin.inc.conf | ||
- type: bind | ||
source: ./volume/access-rotated.log | ||
target: /var/log/apache2/access-rotated.log | ||
environment: | ||
# container parameters, values comming from .env | ||
# (see .env-dist example) | ||
- RENATER_SP_TEST_OR_PROD | ||
- RENATER_SP_ENTITY_ID | ||
- RENATER_SP_ADMIN_MAIL | ||
- RENATER_SP_CERTIFICATE_CRT | ||
- RENATER_SP_CERTIFICATE_KEY | ||
- RENATER_SP_HTTPD_SERVER_NAME | ||
- RENATER_SP_HTTPD_LOG_LEVEL | ||
- RENATER_SP_HTTPD_LOG_FORMAT | ||
- RENATER_SP_HTTPD_PUBLIC_PATH_0 | ||
- RENATER_SP_HTTPD_PUBLIC_PROXY_TO_0 | ||
- RENATER_SP_HTTPD_PUBLIC_PATH_1 | ||
- RENATER_SP_HTTPD_PUBLIC_PROXY_TO_1 | ||
- RENATER_SP_HTTPD_PROTECTED_PATH_0 | ||
- RENATER_SP_HTTPD_PROTECTED_PROXY_TO_0 | ||
- RENATER_SP_HTTPD_PROTECTED_PATH_1 | ||
- RENATER_SP_HTTPD_PROTECTED_PROXY_TO_1 | ||
- RENATER_SP_HTTPD_PROTECTED_REQUIRE_1_0 | ||
- RENATER_SP_HTTPD_PROTECTED_REQUIRE_1_1 | ||
# ci dessous les paramètres du conteneurs avec des valeurs exemples | ||
################################################################### | ||
# Pour basculer facilement le fournisseur de service | ||
# sur la fédération RENATER de TEST ou de PROD | ||
RENATER_SP_TEST_OR_PROD: TEST | ||
# L'identifiant technique de votre fournisseur de service | ||
# (vous devrez forcément le modifer pour votre usage) | ||
RENATER_SP_ENTITY_ID: "https://v2-local.theses.fr/sp" | ||
# L'adresse mail de contact qui sera utilisé dans les pages | ||
# d'erreur d'Apache et de Shibboleth | ||
RENATER_SP_ADMIN_MAIL: "[email protected]" | ||
# Les noms des fichiers des certificats utilisés par shibboleth | ||
# (pour la prod, vous devrez modifier ces valeurs) | ||
RENATER_SP_CERTIFICATE_CRT: "ssl/server-demo.crt" | ||
RENATER_SP_CERTIFICATE_KEY: "ssl/server-demo.key" | ||
# Le nom public du serveur web de votre fournisseur de service | ||
RENATER_SP_HTTPD_SERVER_NAME: "https://v2-local.theses.fr" | ||
# Le niveau et format de log du serveur apache | ||
# avec un exemple de format permettant de logguer les attributs venant de la fédé | ||
RENATER_SP_HTTPD_LOG_LEVEL: "info ssl:warn" | ||
RENATER_SP_HTTPD_LOG_FORMAT: '%h \"%{Shib-Identity-Provider}i\" \"%{eppn}i\" \"%{primary-affiliation}i\" \"%{supannEtablissement}i\" %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"' | ||
# permet de forcer apache à fermer les connexion pour pouvoir rafraîchir | ||
# la resolution de nom des proxypass car dans un context docker, les ip des | ||
# conteneurs peuvent changer | ||
# voir aussi https://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxypass | ||
RENATER_SP_HTTPD_PROXYPASS_DISABLEREUSE: 'on' | ||
# Les correspondances entre les chemins dans l'URL | ||
# et les URL des serveurs backend proxifiés. | ||
# il est possible de créer 10 couples ..._PUBLIC_PATH_* / ..._PUBLIC_PROXY_TO_* | ||
# et 10 couples ..._PROTECTED_PATH_* / ..._PROTECTED_PROXY_TO_* | ||
# Il est obligatoire de positionner au moins un couple PUBLIC | ||
# et un couple PROTECTED | ||
RENATER_SP_HTTPD_PUBLIC_PATH_0: "/" | ||
RENATER_SP_HTTPD_PUBLIC_PROXY_TO_0: "http://backend-example-home:8080/" | ||
RENATER_SP_HTTPD_PUBLIC_PATH_1: "/api/" | ||
RENATER_SP_HTTPD_PUBLIC_PROXY_TO_1: "http://backend-example-api:8080/api/v1/" | ||
RENATER_SP_HTTPD_PUBLIC_PATH_2: '/([0-9]{8}[0-9X]{1})\.xml' | ||
RENATER_SP_HTTPD_PUBLIC_PROXY_TO_2: "http://backend-example-api:8080/api/v1/export/$1/xml" | ||
RENATER_SP_HTTPD_PROTECTED_PATH_0: "/my-protected-url/" | ||
RENATER_SP_HTTPD_PROTECTED_PROXY_TO_0: "http://backend-example-protected:8080/my-protected-url/" | ||
RENATER_SP_HTTPD_PROTECTED_PATH_1: "/my-protected-url2/" | ||
RENATER_SP_HTTPD_PROTECTED_PROXY_TO_1: "http://backend-example-protected2:8080/my-protected-url2/" | ||
RENATER_SP_HTTPD_PROTECTED_REQUIRE_1_0: "Require shib-attr Shib-Identity-Provider https://test-idp.federation.renater.fr/idp/shibboleth" | ||
RENATER_SP_HTTPD_PROTECTED_REQUIRE_1_1: "Require shib-attr eppn [email protected]" | ||
restart: unless-stopped | ||
depends_on: | ||
- backend-example-home | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters