fix: ingestion et service worker sont maintenant redémarré toutes les 6h
This commit is contained in:
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 919 B |
@@ -4,12 +4,12 @@
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<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.gstatic.com" crossorigin>
|
||||
<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>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-DiDQoZDy.css">
|
||||
<script type="module" crossorigin src="/assets/index-y0ONsdGe.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-BcO1waH7.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
5
backend/public/robots.txt
Normal file
5
backend/public/robots.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
User-agent: *
|
||||
Disallow: /api/
|
||||
Disallow: /bundles/
|
||||
|
||||
Allow: /
|
||||
@@ -25,7 +25,11 @@ self.addEventListener('push', (event) => {
|
||||
self.addEventListener('notificationclick', (event) => {
|
||||
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(
|
||||
clients.matchAll({ type: 'window', includeUncontrolled: true }).then((windowClients) => {
|
||||
|
||||
Reference in New Issue
Block a user