-
Notifications
You must be signed in to change notification settings - Fork 1k
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
chore: introduce a new document root #3432
Conversation
i added your suggestion @em92 as written in prev thread. we could theoretically repurpose the examples:
|
In general "cache" is the thing, that can be cleaned up in application and it will work fine. In our case it won't. I suggest to leave "cache" directory as it is now, for secrets and main db use "data" directory, for logs use "log" directory. |
Yes we could introduce new folder Well, I guess in shared hosting scenarios both alternatives leave the folder open for direct access. Yeah I think a new folder is best actually. I want only one "data"( |
I'm in favor of this change. Restricting access to only the needed files is always a good improvement. Regarding backwards compatibility but also new folders/structure I had the idea to look for the cache folder if already there and use it as previously. But for new installs, we should be able to create better suited folder names, properly separating cache from data. One more idea: To avoid complicating the webserver config, we could move the |
Thanks for this. |
there might be an nginx path traversal bug in this pr. in the alias directive |
well as long as we want to preserve old-style deploying to shared hosting there is not much wiggle room here.
|
Usually shared hosting includes some kind of "private" folder specifically for this purpose. So making the data folder location configurable should be enough. |
there is not much immediate pressure for this pr except for some sensitive data being exposed in |
this can be revisited later when the need is stronger |
Add a new document root at
public
.This change opens up some possibilities and increases security.
Preserving the old way of deploying.
See #3341
@em92