feat: add push notification infrastructure with VAPID key generation and PWA manifest support
- Introduce push notification module with VAPID certificate generation, Web Push encryption, and subscription management - Add push registration table index and database schema for storing user subscriptions - Integrate push notification dispatch into existing notification creation flow via async background tasks - Include PWA manifest, service worker, and install prompt UI elements in base template - Register new push router and ensure certificate initialization on application startup - Add configuration variables for VAPID private/public key file paths and subscription contact email - Update JavaScript application entry point with PushManager and PwaInstaller modules - Extend top navigation bar with hidden install and push enable buttons for authenticated users
This commit is contained in:
@@ -12,3 +12,8 @@ SECRET_KEY = environ.get("SECRET_KEY", "devplace-secret-key-change-in-production
|
||||
SESSION_MAX_AGE = 86400 * 7
|
||||
PORT = 10500
|
||||
SITE_URL = environ.get("DEVPLACE_SITE_URL", "").rstrip("/")
|
||||
|
||||
VAPID_PRIVATE_KEY_FILE = BASE_DIR / "notification-private.pem"
|
||||
VAPID_PRIVATE_KEY_PKCS8_FILE = BASE_DIR / "notification-private.pkcs8.pem"
|
||||
VAPID_PUBLIC_KEY_FILE = BASE_DIR / "notification-public.pem"
|
||||
VAPID_SUB = environ.get("DEVPLACE_VAPID_SUB", "mailto:retoor@molodetz.nl")
|
||||
|
||||
Reference in New Issue
Block a user