Ignore push.json and add push.json.example + README note

This commit is contained in:
hbrain 2026-05-29 13:36:58 +02:00
parent b3570f9c0f
commit 85cc58be44
3 changed files with 18 additions and 0 deletions

1
.gitignore vendored
View file

@ -4,3 +4,4 @@ out-dir/
thumbs/ thumbs/
*.log *.log
cache/ cache/
push.json

View file

@ -507,3 +507,16 @@ Notes:
- If the Gemini API returns an error (HTTP 429 or 503) the response and details are written to the job log (`<inputdir>/generate_data.log`) and debug response file when available. - If the Gemini API returns an error (HTTP 429 or 503) the response and details are written to the job log (`<inputdir>/generate_data.log`) and debug response file when available.
If you prefer a background/async workflow instead of the synchronous popup, the endpoint and UI can be adjusted to start the job in the background and poll for results instead. If you prefer a background/async workflow instead of the synchronous popup, the endpoint and UI can be adjusted to start the job in the background and poll for results instead.
Push VAPID keys (push.json)
- push.json contains the VAPID keys used by the server for web-push.
- Do NOT commit push.json to git. Use push.json.example as a template.
To install on the server (example):
sudo cp push.json.example push.json
sudo chown root:www-data push.json
sudo chmod 640 push.json

4
push.json.example Normal file
View file

@ -0,0 +1,4 @@
{
"vapidPublicKey": "REPLACE_WITH_PUBLIC_KEY",
"vapidPrivateKey": "REPLACE_WITH_PRIVATE_KEY"
}