add push notification support

This commit is contained in:
CEF Server 2024-07-17 14:34:01 +00:00
parent 6a69c5a34d
commit 1b1dcc3755
12 changed files with 175 additions and 10 deletions

View file

@ -1,3 +1,12 @@
import subprocess
import uvicorn
import cef_3M
import os
if not os.path.exists(os.path.join("keys", "vapid.pem")):
print("Generating VAPID key")
subprocess.run("openssl ecparam -name prime256v1 -genkey -noout -out keys/vapid.pem".split())
print("key generated")
uvicorn.run("cef_3M:app", port=8001, reload=True)