Project

General

Profile

Actions

Demande #3477

closed

Préparation de libre en fete 2019

Added by François Poulain about 6 years ago. Updated almost 4 years ago.

Status:
Fermé
Priority:
Normale
Category:
-
Target version:
Start date:
11/25/2018
Due date:
% Done:

0%

Estimated time:
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.

Actions #1

Updated by Quentin Gibeaux over 5 years ago

  • Status changed from Résolu to Fermé
Actions #2

Updated by Christian P. Momon almost 4 years ago

  • Assignee set to François Poulain
Actions

Also available in: Atom PDF