diff --git a/cinny/nginx.conf b/cinny/nginx.conf index 67350d3..1419a4c 100644 --- a/cinny/nginx.conf +++ b/cinny/nginx.conf @@ -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;