update instructions and email for tests
This commit is contained in:
@@ -41,4 +41,4 @@ RUN chown -R myuser:myuser /app
|
|||||||
USER myuser
|
USER myuser
|
||||||
|
|
||||||
# Start gunicorn with the appropriate options
|
# Start gunicorn with the appropriate options
|
||||||
CMD ["gunicorn", "-b", "0.0.0.0:3000", "--log-level=debug", "--workers=3", "app:app"]
|
CMD ["gunicorn", "-b", "0.0.0.0:3000", "--log-level=debug", "--workers=1", "app:app"]
|
||||||
|
|||||||
11
README.md
11
README.md
@@ -240,13 +240,16 @@ pip install gunicorn
|
|||||||
|
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
|
|
||||||
gunicorn -b 0.0.0.0:3000 --log-level=debug --workers=3 app:app
|
gunicorn -b 0.0.0.0:3000 --log-level=debug --workers=1 app:app # 3 workers trigger 3 daily subscription runs
|
||||||
|
|
||||||
# ... and see the results in a browser: http://localhost:3000/web-push/vapid
|
|
||||||
|
|
||||||
# See Troubleshooting below if that doesn't work out of the box.
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
... and see the results in a browser: http://localhost:3000/web-push/vapid
|
||||||
|
|
||||||
|
See Troubleshooting below if that doesn't work out of the box.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Run a test:
|
Run a test:
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ try:
|
|||||||
result = webpush(subscription_info,
|
result = webpush(subscription_info,
|
||||||
data,
|
data,
|
||||||
vapid_private_key=private_key_base64,
|
vapid_private_key=private_key_base64,
|
||||||
vapid_claims={"sub": "mailto:matthew.raymer@gmail.com"})
|
vapid_claims={"sub": "mailto:info@timesafari.app"})
|
||||||
print(f"Result from remote service: {result}")
|
print(f"Result from remote service: {result}")
|
||||||
# log the .reason from Apple
|
# log the .reason from Apple
|
||||||
# https://developer.apple.com/documentation/usernotifications/sending_web_push_notifications_in_web_apps_and_browsers#3994594
|
# https://developer.apple.com/documentation/usernotifications/sending_web_push_notifications_in_web_apps_and_browsers#3994594
|
||||||
|
|||||||
Reference in New Issue
Block a user