cinny: 303 /share-target → /share for the PWA share target (#155)
Lint / Shell (shellcheck) (push) Successful in 12s
Lint / JS (eslint) (push) Successful in 8s
Lint / Python (ruff) (push) Successful in 9s
Lint / Python deps (pip-audit) (push) Successful in 1m40s
Lint / Secret scan (gitleaks) (push) Successful in 22s

The service worker normally answers the share-sheet POST itself; this
keeps a POST that reaches nginx before the worker controls the page from
returning 405.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PPmy3tPq869XDW4njjVaKA
This commit is contained in:
2026-09-20 13:36:09 -04:00
co-authored by Claude Opus 5
parent c553c28957
commit a16cc85420
+7
View File
@@ -77,6 +77,13 @@ server {
proxy_connect_timeout 5;
}
# [Gitea #155] PWA share target. The service worker normally answers this
# POST itself; if it isn't controlling the page yet, land on /share
# (the shared files are lost, but nothing 405s).
location = /share-target {
return 303 /share;
}
location / {
rewrite ^/config\.json$ /config.json break;
rewrite ^/manifest\.json$ /manifest.json break;