Closed
Description
- Gitea version (or commit ref): 1.12.0
- Git version:
- Operating system: Ubuntu Bionic
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
- Not relevant
- Log gist:
Description
As a result of #11577 , the reverse proxy configuration recommended in https://docs.gitea.io/en-us/reverse-proxies/#using-nginx-as-a-reverse-proxy-and-serve-static-resources-directly is no longer correct. This is because Gitea is not using STATIC_URL_PREFIX
for serviceworker.js
file and the request is instead issued for /serviceworker.js
. With the recommended configuration that request will be in turn proxied over to Gitea and then fail, resulting in 404 error.
The fix which worked for me was to add this stanza to my Nginx configuration:
location /serviceworker.js {
alias /path/to/gitea/public/serviceworker.js;
}
I assume this is either:
- documentation issue (i.e. add stanza like above to the above documentation page), or
STATIC_URL_PREFIX
should have been used forserviceworker.js
file, but isn't.
BTW thank you for this awesome project!
...
Screenshots
Metadata
Metadata
Assignees
Labels
No labels