diff --git a/README.md b/README.md index d2adef9..18e0108 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Watch the video (YouTube): It is the server part of our efforts to draft a WebDAV-Push standard and provide a working implementation (server + client) in order to demonstrate it. > [!WARNING] -> This extension is in an early stage of development. It is for demonstration and testing purposes only. Don't use it on production systems! +> This extension is in an early stage of development. It is for demonstration and testing purposes only. It also marks unencrypted data as encrypted. Don't use it on production systems! For instance, push subscriptions currently don't expire and won't be removed when they have become invalid. So the table will grow bigger and bigger and everything will become slow over time. You can however install/enable the extension to test it and disable or remove it again at any time. When the extension is disabled, it doesn't influence your system. diff --git a/lib/PushTransports/WebPushTransport.php b/lib/PushTransports/WebPushTransport.php index 644447f..0eb8989 100644 --- a/lib/PushTransports/WebPushTransport.php +++ b/lib/PushTransports/WebPushTransport.php @@ -93,6 +93,10 @@ public function notify(string $userId, string $collectionName, int $subscription 'http' => [ 'method' => 'POST', 'content' => $content, + 'header' => [ + 'TTL: 86400', + 'Content-Encoding: aes128gcm', + ], ], ];