add push notification support
This commit is contained in:
parent
6a69c5a34d
commit
1b1dcc3755
12 changed files with 175 additions and 10 deletions
9
main.py
9
main.py
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue