admin:services:v1.chapril.org
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
admin:services:v1.chapril.org [2019/09/25 02:34] – créée cpm | admin:services:v1.chapril.org [2019/09/27 15:32] (Version actuelle) – [Configuration NGINX] banner.chparil.org migration cpm | ||
---|---|---|---|
Ligne 3: | Ligne 3: | ||
Ce service est un site statique, archive en ligne de la première version de www.chapril.org. | Ce service est un site statique, archive en ligne de la première version de www.chapril.org. | ||
+ | Actuellement, | ||
+ | ===== Configuration ===== | ||
+ | |||
+ | ==== Configuration NGINX ==== | ||
+ | |||
+ | La première version du site www.chapril.org était utilisée pour propagée la bannière affichée en haut des services Chapril. | ||
+ | Cela passait par un ajout au niveau de NGinx. Il suffisait d' | ||
+ | Pour l' | ||
+ | |||
+ | < | ||
+ | server { | ||
+ | listen 80; | ||
+ | listen [::]:80; | ||
+ | |||
+ | server_name v1.chapril.org; | ||
+ | |||
+ | access_log / | ||
+ | error_log / | ||
+ | |||
+ | include / | ||
+ | include / | ||
+ | include / | ||
+ | } | ||
+ | |||
+ | server { | ||
+ | listen 443 ssl; | ||
+ | listen [::]:443 ssl; | ||
+ | |||
+ | server_name v1.chapril.org; | ||
+ | |||
+ | access_log / | ||
+ | error_log / | ||
+ | |||
+ | ssl_certificate | ||
+ | ssl_certificate_key / | ||
+ | |||
+ | include / | ||
+ | include / | ||
+ | |||
+ | #include / | ||
+ | location / | ||
+ | root / | ||
+ | proxy_set_header Host banner.chapril.org; | ||
+ | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
+ | proxy_set_header X-Forwarded-Proto $scheme; | ||
+ | proxy_pass http:// | ||
+ | } | ||
+ | |||
+ | location / { | ||
+ | #include / | ||
+ | set $banner_head ' | ||
+ | set $banner_body ' | ||
+ | <header id=" | ||
+ | <div id=" | ||
+ | <div id=" | ||
+ | <a href=" | ||
+ | </ | ||
+ | <div id=" | ||
+ | <ul> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ul> | ||
+ | </ | ||
+ | <div id=" | ||
+ | <a href=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | subs_filter '</ | ||
+ | $banner_head | ||
+ | </ | ||
+ | subs_filter '</ | ||
+ | $banner_body | ||
+ | </ | ||
+ | |||
+ | sub_filter_once on; | ||
+ | |||
+ | |||
+ | proxy_set_header Host $http_host; | ||
+ | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
+ | proxy_set_header X-Forwarded-Proto $scheme; | ||
+ | proxy_pass http:// | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ==== Supervision ==== | ||
+ | |||
+ | Ajout de sondes dans // | ||
+ | |||
+ | < | ||
+ | vars.http_vhosts[" | ||
+ | http_vhost = " | ||
+ | http_uri = "/" | ||
+ | http_ssl = false | ||
+ | http_expect = " | ||
+ | } | ||
+ | |||
+ | vars.http_vhosts[" | ||
+ | http_vhost = " | ||
+ | http_uri = "/" | ||
+ | http_ssl = true | ||
+ | http_string = "< | ||
+ | } | ||
+ | </ |
admin/services/v1.chapril.org.txt · Dernière modification : 2019/09/27 15:32 de cpm