-
-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarification about nginx configuration introduced at 0.7.2 #3391
Comments
Hi @oculos The change was made to prevent access to any non-image files from the Given the small team involved in BookWyrm development, it's tricky to keep the docs and code updated for all situations. Development is primarily focussed on Docker deployments, and documentation for other deployments is contributed from the community. I created an issue at #3279 noting that the docs need to be updated. I authored the change in |
@hughrun I can try to help here. I'll see if I have any file created there that would fall on that case and see if I can block it on the reverse proxy. |
Hi agian @hughrun . I wanted to give a look into this, but I realized one thing: So we need to clarify something else here as well: |
And the explanation at https://github.com/bookwyrm-social/bookwyrm/releases/tag/v0.7.2 is very confusing. So we need some clarification as to:
Any thoughts here @mouse-reeve ? |
@oculos Thanks for looking at this. Images should always be stored in The change I made was an attempt to stop anything that is not an image file being accessed from that directory. Subsequent fixes now essentially make this a legacy issue because we never store user exports there any more, but the problem was that in theory one could initially access user exports from that directory without any authentication. |
I see. The fix should most likely be somewhere here:
But I am still not sure how to deal with it. |
If I remember correctly the confusion is that they were originally one rule but when I changed it I split it into two rules. Maybe? I did mess it up a few times. In any case it is only really relevant to restrict file types allowed from the |
Hi,
On version 0.7.2, there were introduced some changes on the production.conf nginx file.
However, it is very unclear how those changes affect those users that use reverse proxies or who do not run a docker instance - or those, like me, who have it on kubernetes.
On the page with the reverse proxy instructions, for example,
production.conf
is not even mentioned. Should something be done on the default.conf or nginx.conf?The text was updated successfully, but these errors were encountered: