YunoHost-Apps / gitea_ynh

Gitea is a fork of Gogs. A git platform, Mirror of https://framagit.org/YunoHost-Apps/gitea_ynh
https://gitea.io
MIT License
22 stars 17 forks source link

Bad nginx config for npm registry #73

Open jukefr opened 1 year ago

jukefr commented 1 year ago

Describe the bug

Proxy pass nginx config is bad and makes viewing packages on web ui result in 404 (and maybe breaks other stuff elsewhere but idk) See related issue here https://github.com/go-gitea/gitea/issues/21407 And fix is this comment on the issue https://github.com/go-gitea/gitea/issues/21407#issuecomment-1420975465

Context

n/a / all

Steps to reproduce

Upload package to npm registry on gitea Try to open it in web ui, 404

Fix simply requires editing /etc/nginx/conf.d/{install_url}.d/gitea.conf And removing the trailing slash on the proxy pass (as mentioned in the comment of the linked issue above)

Expected behavior

No 404

Logs

N/A