Projet

Général

Profil

Demande #3477

Préparation de libre en fete 2019

Ajouté par François Poulain il y a plus de 5 ans. Mis à jour il y a plus de 3 ans.

Statut:
Fermé
Priorité:
Normale
Assigné à:
Catégorie:
-
Version cible:
Début:
25/11/2018
Echéance:
% réalisé:

0%

Temps estimé:
Difficulté:
2 Facile

Description

Ticket ouvert pour archive.

Il faut assurer la partie technique du libre en fete 2019 et donc migrer 2018 vers l'arrière.

DNS

Pas besoin de toucher il y a un wildcard.

Frontal nginx

Pas besoin de toucher il y a un wildcard.

Spip

Changement du .htaccess pour mettre 2019 par défaut.

RedirectMatch ^/$ /2019/
RedirectMatch ^/([1-9][0-9]*)$    /$1/
Redirect Permanent /apropos /2019/a-propos.html
Redirect Permanent /organisation /2019/organisation.html
Redirect Permanent /evenements /2019/evenements.html
Redirect Permanent /comm /2019/comm.html
Redirect Permanent /decouverte /2019/decouverte.html
Redirect Permanent /conseils-communication /2019/conseils-communication.html
Redirect Permanent /historique /2019/historique.html
Redirect Permanent /communique-evenement /2019/communique-evenement.html

Création du domaine 2018.libre-en-fete.net sur le apache arrière

Sur lamp :

diff --git a/apache2/sites-available/libre-en-fete.net.conf b/apache2/sites-available/libre-en-fete.net.conf
index 5a207d4..ce0a98c 100644
--- a/apache2/sites-available/libre-en-fete.net.conf
+++ b/apache2/sites-available/libre-en-fete.net.conf
@@ -1,4 +1,14 @@
 <VirtualHost *:80>
+        ServerName 2018.libre-en-fete.net
+       ServerAlias 2018.libre-en-fete.org
+
+        ErrorLog /var/log/apache2/libre-en-fete.net/libre-en-fete.net-error.log
+        CustomLog /var/log/apache2/libre-en-fete.net/libre-en-fete.net-access.log combined-proxy
+
+       RedirectMatch 302 ^.* https://libre-en-fete.net/2018/
+</VirtualHost>
+
+<VirtualHost *:80>
         ServerName 2017.libre-en-fete.net
        ServerAlias 2017.libre-en-fete.org

Puis reload apache.

Nouveau certificat pour 2018.libre-en-fete.net et .org

Sur bastion :

certbot certonly --renew-with-new-domains --webroot -w /var/www/acme-challenge -d $(awk '$3 ~ /acme-challenge/ {print $1 ","}' /etc/letsencrypt/renewal/libre-en-fete.net.conf | sed 's/\n/ -d /' | tr -d '\n')2018.libre-en-fete.net,2018.libre-en-fete.org

Puis reload nginx.

Monitoring

Sur Galanga:

diff --git a/icinga/objects/hosts/cluster-vms/bastion.cfg b/icinga/objects/hosts/cluster-vms/bastion.cfg
index b14921f..2eb9b9c 100644
--- a/icinga/objects/hosts/cluster-vms/bastion.cfg
+++ b/icinga/objects/hosts/cluster-vms/bastion.cfg
@@ -464,6 +464,23 @@ define service {
 }

 define service {
+       service_description     Check Secure Web Redirection 2018.libre-en-fete.org
+       use                     secure-web-redir-service
+       host_name               bastion
+       _fqdn                   2018.libre-en-fete.org
+       _redirect               libre-en-fete.org/2018/
+       _status                 302
+}
+
+define service {
+       service_description     Check Forced https 2018.libre-en-fete.net
+       use                     forced-https-service
+       host_name               bastion
+       _fqdn                   2018.libre-en-fete.net
+       _status                 302
+}
+
+define service {
        service_description     Check Secure Web Redirection 2017.libre-en-fete.org
        use                     secure-web-redir-service
        host_name               bastion

Puis reload icinga.

Historique

#1

Mis à jour par Quentin Gibeaux il y a presque 5 ans

  • Statut changé de Résolu à Fermé
#2

Mis à jour par Christian P. Momon il y a plus de 3 ans

  • Assigné à mis à François Poulain

Formats disponibles : Atom PDF