Outils pour utilisateurs

Outils du site


admin:services:v1.chapril.org

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
admin:services:v1.chapril.org [2019/09/25 10:10] cpmadmin: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.
  
-===== Configuration NGINX =====+Actuellement, le v1.chapril.org est installé sur la **//vm lamp//**. 
 + 
 +===== 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. 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.
Ligne 39: Ligne 43:
     include /etc/nginx/acme-challenge;     include /etc/nginx/acme-challenge;
  
-    #include /etc/nginx/chapril-banner-location;+    #include /etc/nginx/chapril-banner-location-v2;
     location /Chapril-banner {     location /Chapril-banner {
         root /var/www/chapril.org/;         root /var/www/chapril.org/;
 +        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://lamp.cluster.chapril.org;
     }     }
  
Ligne 85: Ligne 93:
     }     }
 } }
 +</code>
 +
 +==== Supervision ====
 +
 +Ajout de sondes dans //root@admin:/etc/icinga2/zones.d/master/cluster//lamp.conf :
 +
 +<code>
 +  vars.http_vhosts["v1.chaprilorg force-ssl"] = {
 +    http_vhost = "v1.chapril.org"
 +    http_uri = "/"
 +    http_ssl = false
 +    http_expect = "HTTP/1.1 301 Moved Permanently,Location: https://v1.chapril.org/"
 +  }
  
 +  vars.http_vhosts["v1.chaprilorg homepage"] = {
 +    http_vhost = "v1.chapril.org"
 +    http_uri = "/"
 +    http_ssl = true
 +    http_string = "<title>Cha ronronne !</title>"
 +  }
 </code> </code>
admin/services/v1.chapril.org.1569406243.txt.gz · Dernière modification : 2019/09/25 10:10 de cpm