Files
decePubClient/deploy/nginx/decepub.thepra.dev.conf
T
thepraandClaude Opus 5.5 ab17959ed4
Build / Build (push) Successful in 56s
R9 Web Push in decePub: one subscription per persona, each with its own token and registration
Settings gets "Notifications on this device" (PushEditor): personas, alerts in four groups, policy, a test
notification, after a one-time notice of what the push service learns. Each persona ticked gets its own service
worker registration (push-worker.js at push/{slot}/), so its own endpoint and keys, subscribed with its own token
(IHttpService's *As); nothing PrivaPub stores ties two personas together and the worker never reads the payload's
token. PushService follows the tokens (re-subscribing after a renewal), reconciles at every session start, turns
off before sign-out and drops deleted or suspended personas. A click opens that persona's notifications; the app
badge counts the unread ones. Exchanges now ask for the push scope.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WpVCoDeM1qUTRp4fXQdfof
2026-10-18 09:50:46 +02:00

58 lines
1.3 KiB
Plaintext

server {
listen 80;
listen [::]:80;
server_name decepub.thepra.dev;
location ^~ /.well-known/acme-challenge/ {
root /var/www/acme;
default_type "text/plain";
}
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl;
listen 8444 ssl proxy_protocol;
listen [::]:443 ssl;
server_name decepub.thepra.dev;
http2 on;
include /etc/nginx/ssl.conf;
ssl_certificate /root/.acme.sh/decepub.thepra.dev_ecc/fullchain.cer;
ssl_certificate_key /root/.acme.sh/decepub.thepra.dev_ecc/decepub.thepra.dev.key;
include /etc/nginx/snippets/decepub-headers.conf;
access_log /var/log/nginx/decepub.thepra.dev.access.log;
error_log /var/log/nginx/decepub.thepra.dev.error.log;
root /var/www/decepub.thepra.dev;
index index.html;
gzip_static on;
open_file_cache off;
location ^~ /.well-known/acme-challenge/ {
root /var/www/acme;
default_type "text/plain";
}
location = /index.html { expires -1; }
location = /build.json { expires -1; }
location = /appsettings.json { expires -1; }
location = /service-worker.js { expires -1; }
location = /service-worker-assets.js { expires -1; }
location = /push-worker.js { expires -1; }
location ^~ /_framework/ {
expires 1h;
try_files $uri =404;
}
location / {
expires -1;
try_files $uri $uri/ /index.html;
}
}