fix: ingestion et service worker sont maintenant redémarré toutes les 6h

This commit is contained in:
Gwadaking
2026-04-14 01:42:43 -04:00
parent 9455fd8cb9
commit 2c41832d02
6 changed files with 25 additions and 5 deletions

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 9.3 KiB

After

Width:  |  Height:  |  Size: 919 B

View File

@@ -4,12 +4,12 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" /> <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Radar Sargasses 971</title> <title>Radar Sargasses Caraïbes</title>
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fredoka+One&family=Fredoka:wght@400;500;600&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Fredoka+One&family=Fredoka:wght@400;500;600&display=swap" rel="stylesheet">
<script type="module" crossorigin src="/assets/index-BikUz8Kd.js"></script> <script type="module" crossorigin src="/assets/index-y0ONsdGe.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DiDQoZDy.css"> <link rel="stylesheet" crossorigin href="/assets/index-BcO1waH7.css">
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>

View File

@@ -0,0 +1,5 @@
User-agent: *
Disallow: /api/
Disallow: /bundles/
Allow: /

View File

@@ -25,7 +25,11 @@ self.addEventListener('push', (event) => {
self.addEventListener('notificationclick', (event) => { self.addEventListener('notificationclick', (event) => {
event.notification.close(); event.notification.close();
const targetUrl = event.notification.data?.url ?? '/'; const rawUrl = event.notification.data?.url ?? '/';
// N'autoriser que les URLs relatives ou du même domaine (protection open redirect)
const targetUrl = (rawUrl.startsWith('/') || rawUrl.startsWith(self.location.origin))
? rawUrl
: '/';
event.waitUntil( event.waitUntil(
clients.matchAll({ type: 'window', includeUncontrolled: true }).then((windowClients) => { clients.matchAll({ type: 'window', includeUncontrolled: true }).then((windowClients) => {

BIN
docs/screen.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

BIN
docs/screen2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB