Phase 0 perf : sync prod (GWS 0.5.0/0.5.6), br/gz regeneres, script Caddy precompressed + cache
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cette révision appartient à :
1 Parent
0ec3f0e133
révision
4eb1009aa1
6 fichiers modifiés
+80
-19
Aucun fichier ne correspond à votre recherche
@@ -0,0 +1,51 @@
|
||||
#!/bin/bash
|
||||
# Phase 0 perf gastinel.me : Brotli/gzip precompresses + Cache-Control.
|
||||
# Ne modifie QUE le handle final du bloc "gastinel.me, www.gastinel.me".
|
||||
# Sauvegarde -> modification -> caddy validate -> reload ; retour arriere si echec.
|
||||
# Usage (sur cornafsuisse) : sudo bash ~/appliquer-caddy-perf.sh
|
||||
set -euo pipefail
|
||||
[ "$(id -u)" = 0 ] || { echo "A lancer avec sudo"; exit 1; }
|
||||
|
||||
CF=/etc/caddy/Caddyfile
|
||||
BAK="$CF.avant-perf-$(date +%Y%m%d-%H%M%S)"
|
||||
cp -a "$CF" "$BAK"
|
||||
echo "Sauvegarde : $BAK"
|
||||
|
||||
python3 - "$CF" <<'PY'
|
||||
import sys
|
||||
p = sys.argv[1]
|
||||
s = open(p).read()
|
||||
old = "\thandle {\n\t\troot * /srv/gastinel.me\n\t\tfile_server\n\t}\n"
|
||||
new = (
|
||||
"\t# Assets (polices, images) : cache navigateur 30 jours.\n"
|
||||
"\t# Passer a immutable/1 an quand les noms de fichiers seront hashes.\n"
|
||||
"\thandle /assets/* {\n"
|
||||
"\t\theader Cache-Control \"public, max-age=2592000\"\n"
|
||||
"\t\troot * /srv/gastinel.me\n"
|
||||
"\t\tfile_server\n"
|
||||
"\t}\n"
|
||||
"\n"
|
||||
"\t# HTML/JSON : revalidation a chaque visite (304 via ETag si inchange).\n"
|
||||
"\t# Sert les .br/.gz precompresses s'ils existent (sinon encode zstd/gzip).\n"
|
||||
"\thandle {\n"
|
||||
"\t\theader Cache-Control \"no-cache\"\n"
|
||||
"\t\troot * /srv/gastinel.me\n"
|
||||
"\t\tfile_server {\n"
|
||||
"\t\t\tprecompressed br gzip\n"
|
||||
"\t\t}\n"
|
||||
"\t}\n"
|
||||
)
|
||||
n = s.count(old)
|
||||
if n != 1:
|
||||
sys.exit("Bloc attendu introuvable ou ambigu (%d) : aucune modification." % n)
|
||||
open(p, "w").write(s.replace(old, new))
|
||||
PY
|
||||
|
||||
if caddy validate --config "$CF" --adapter caddyfile && systemctl reload caddy; then
|
||||
echo "OK : Caddy recharge."
|
||||
else
|
||||
echo "ECHEC : restauration de $BAK"
|
||||
cp -a "$BAK" "$CF"
|
||||
systemctl reload caddy || true
|
||||
exit 1
|
||||
fi
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Télécharger Gastinel Weather Studio (Windows 64-bit) — Canal Officiel</title>
|
||||
<meta name="description" content="Téléchargement officiel de Gastinel Weather Studio (GWS) v0.4.8. Installateur standard (.exe) et paquet de mise à jour rapide (.gws) pour Windows 10 et 11.">
|
||||
<meta name="description" content="Téléchargement officiel de Gastinel Weather Studio (GWS) v0.5.6. Installateur standard (.exe) et paquet de mise à jour rapide (.gws) pour Windows 10 et 11.">
|
||||
<link rel="canonical" href="https://gastinel.me/gws/download/">
|
||||
<meta name="robots" content="index, follow">
|
||||
<meta name="author" content="Théo Gastinel">
|
||||
@@ -13,7 +13,7 @@
|
||||
<meta property="og:locale" content="fr_FR">
|
||||
<meta property="og:url" content="https://gastinel.me/gws/download/">
|
||||
<meta property="og:site_name" content="Gastinel Weather Studio">
|
||||
<meta property="og:title" content="Télécharger Gastinel Weather Studio (v0.4.8)">
|
||||
<meta property="og:title" content="Télécharger Gastinel Weather Studio (v0.5.6)">
|
||||
<meta property="og:description" content="Installateur standard (.exe) et paquet autonome de mise à jour rapide (.gws) pour Windows 10 et 11 (64-bit).">
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Ccircle cx='250' cy='250' r='230' fill='%231e4d8b'/%3E%3Cpath d='M 80 280 L 170 210 L 210 230 L 250 140 L 290 190 L 330 160 L 420 280' fill='none' stroke='%23fff' stroke-width='24' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E">
|
||||
@@ -252,6 +252,7 @@ body {
|
||||
color: var(--ok);
|
||||
border: 1px solid #b7dfcb;
|
||||
}
|
||||
.dl-compteur { margin: 10px 0 0; text-align: center; font-size: 13px; opacity: .7; }
|
||||
.dl-size {
|
||||
font-size: 0.82rem;
|
||||
color: var(--grey-500);
|
||||
@@ -502,7 +503,7 @@ body {
|
||||
<div class="dl-hero">
|
||||
<div class="dl-badge-tag">
|
||||
<span class="status-dot"></span>
|
||||
<span>Version 0.4.8 · Canal stable officiel</span>
|
||||
<span>Version 0.5.6 · Canal stable officiel</span>
|
||||
</div>
|
||||
<h1>Télécharger Gastinel Weather Studio</h1>
|
||||
<p>Compatible Windows 10 et Windows 11 (64-bit) — <a href="https://gastinel.me/gws/stack/#configuration">configuration requise</a>. Déjà installé ? Le <a href="#mise-a-jour">paquet de mise à jour .gws</a> se trouve plus bas.</p>
|
||||
@@ -516,7 +517,7 @@ body {
|
||||
<div>
|
||||
<div class="dl-card-badge-row">
|
||||
<span class="dl-tag tag-blue">Nouvelle installation</span>
|
||||
<span class="dl-size">3,7 Mo · x64</span>
|
||||
<span class="dl-size">3,6 Mo · x64</span>
|
||||
</div>
|
||||
<h2 class="dl-card-title">Installateur Windows (.exe)</h2>
|
||||
<div class="dl-card-for">Pour votre première installation sur l'ordinateur</div>
|
||||
@@ -528,9 +529,10 @@ body {
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<a href="https://gastinel.me/gws/downloads/Gastinel_Weather_Studio_0.4.8_x64-setup.exe" class="btn-dl-action btn-dl-exe" download>
|
||||
<a href="https://gastinel.me/gws/downloads/Gastinel_Weather_Studio_0.5.6_x64-setup.exe" class="btn-dl-action btn-dl-exe" download>
|
||||
<span>Télécharger l'Installateur (.exe)</span>
|
||||
</a>
|
||||
<p class="dl-compteur" id="dl-compteur" hidden></p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -562,13 +564,10 @@ body {
|
||||
|
||||
<!-- Changelog -->
|
||||
<div class="changelog-box">
|
||||
<h3>Nouveautés de la version 0.4.8</h3>
|
||||
<h3>Nouveautés de la version 0.5.6</h3>
|
||||
<ul>
|
||||
<li><strong>Import par glisser-déposer :</strong> déposez un fichier n'importe où sur la fenêtre ; son format est reconnu et le bon onglet d'import s'ouvre (également avec le bouton de choix de fichier).</li>
|
||||
<li><strong>Projet d'exemple :</strong> découvrez l'application avant d'avoir vos propres données.</li>
|
||||
<li><strong>Carte 3D :</strong> plus légère en mémoire avec l'extension Carte 3D 1.0.2.</li>
|
||||
<li><strong>Import :</strong> un fichier CSV ordinaire n'est plus pris pour un export ElitechLog.</li>
|
||||
<li><strong>Raccourcis clavier :</strong> Ctrl+I pour importer, Ctrl+, pour les Paramètres.</li>
|
||||
<li><strong>Synchronisation Cloud plus discrète :</strong> « Synchroniser maintenant » rafraîchit le projet ouvert sur place, sans repasser par l’écran d’accueil.</li>
|
||||
<li><strong>Import plus rapide :</strong> après un import sans avertissement, la fenêtre se ferme toute seule. Elle reste ouverte quand le bilan contient quelque chose à lire.</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -580,7 +579,7 @@ body {
|
||||
<div>
|
||||
<div class="dl-card-badge-row">
|
||||
<span class="dl-tag tag-green">Mise à jour rapide</span>
|
||||
<span class="dl-size">4,5 Mo · Format .gws</span>
|
||||
<span class="dl-size">4,4 Mo · Format .gws</span>
|
||||
</div>
|
||||
<h2 class="dl-card-title">Paquet de Mise à Jour (.gws)</h2>
|
||||
<div class="dl-card-for">Si vous avez déjà Gastinel Weather Studio</div>
|
||||
@@ -593,7 +592,7 @@ body {
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<a href="https://gastinel.me/gws/downloads/update-0.4.8.gws" id="lien-gws" class="btn-dl-action btn-dl-gws btn-dl-secondary" download>
|
||||
<a href="https://gastinel.me/gws/downloads/update-0.5.6.gws" id="lien-gws" class="btn-dl-action btn-dl-gws btn-dl-secondary" download>
|
||||
<span>Télécharger le Paquet (.gws)</span>
|
||||
</a>
|
||||
</div>
|
||||
@@ -649,5 +648,16 @@ body {
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
<script>
|
||||
/* Compteur d'installations (compteur.json, recalculé toutes les 15 min sur le serveur). */
|
||||
fetch('/gws/download/compteur.json', { cache: 'no-store' }).then(function (r) {
|
||||
return r.ok ? r.json() : null;
|
||||
}).then(function (c) {
|
||||
if (!c || typeof c.installations !== 'number') return;
|
||||
var p = document.getElementById('dl-compteur');
|
||||
p.textContent = 'Téléchargé ' + c.installations.toLocaleString('fr-FR') + ' fois';
|
||||
p.hidden = false;
|
||||
}).catch(function () {});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -425,12 +425,12 @@ body {
|
||||
<a href="https://gastinel.me/" class="gws-brand">
|
||||
<img src="../assets/apps/gastinel-weather-studio/icone.webp" alt="Icône GWS" class="gws-nav-icon" width="36" height="36">
|
||||
<span class="gws-brand-title">Gastinel Weather Studio</span>
|
||||
<span class="gws-brand-badge">v0.4.8</span>
|
||||
<span class="gws-brand-badge">v0.5.6</span>
|
||||
</a>
|
||||
|
||||
<div class="gws-nav-actions">
|
||||
<a href="https://gastinel.me/gws/download/" class="gws-nav-link-btn">
|
||||
<span>Télécharger v0.4.8</span>
|
||||
<span>Télécharger v0.5.6</span>
|
||||
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M12 5l7 7-7 7"/></svg>
|
||||
</a>
|
||||
<a href="https://gastinel.me/#apps" class="gws-back-site">
|
||||
@@ -535,10 +535,10 @@ body {
|
||||
<div class="footer-cta-download">
|
||||
<div>
|
||||
<h3>Télécharger Gastinel Weather Studio</h3>
|
||||
<p>Installez le logiciel sur votre PC ou récupérez la mise à jour officielle v0.4.8.</p>
|
||||
<p>Installez le logiciel sur votre PC ou récupérez la mise à jour officielle v0.5.6.</p>
|
||||
</div>
|
||||
<a href="https://gastinel.me/gws/download/" class="btn-cta-large-white">
|
||||
<span>Accéder aux Téléchargements (v0.4.8)</span>
|
||||
<span>Accéder aux Téléchargements (v0.5.6)</span>
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:middle;margin-left:6px;"><path d="M5 12h14M12 5l7 7-7 7"/></svg>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
+2
-2
@@ -2073,7 +2073,7 @@ body.spa-nav-hidden .spa-nav { display:none; }
|
||||
<img src="assets/apps/gastinel-weather-studio/icone.webp" alt="Icône Gastinel Weather Studio" class="gws-featured-icon" width="56" height="56" loading="lazy">
|
||||
<div>
|
||||
<div class="gws-featured-tag-row">
|
||||
<span class="gws-badge-status available"><span class="badge-dot"></span>Version 0.4.0 disponible</span>
|
||||
<span class="gws-badge-status available"><span class="badge-dot"></span>Version 0.5.0 disponible</span>
|
||||
<span class="gws-badge-arch">Windows 10 / 11 (64-bit)</span>
|
||||
</div>
|
||||
<h3 class="gws-featured-title">Gastinel Weather Studio</h3>
|
||||
@@ -3240,7 +3240,7 @@ var Modules={
|
||||
|
||||
gws:function(root){
|
||||
var API_URL = 'https://gastinel.me/gws/api/v1/update/windows/x86_64/0.0.0';
|
||||
var DEFAULT_VERSION = '0.4.0';
|
||||
var DEFAULT_VERSION = '0.5.0';
|
||||
|
||||
function copyText(text, cb) {
|
||||
if (navigator.clipboard && window.isSecureContext) {
|
||||
|
||||
Fichier binaire non affiché.
Fichier binaire non affiché.
Référencer dans un nouveau ticket
Bloquer un utilisateur