-
Notifications
You must be signed in to change notification settings - Fork 7
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
Using search-terminating prefix matching #16
Comments
@philtuckey Thank you for this suggestion. In general the nginx conf is just an example and it will probably be very hard to get a conf that it will work with every setup or will be robust against users who will add changes to it without fully understand what they are changing. So it might make sense to add a bit more info about this type of mistakes in the README |
@yonjah
Best |
Yea I guess it does. I never used the localFileEditor so didn't noticed it was broken.
There is already a similar pull request for this issue #15 I have a few changes I want to make before adding this feature (especially putting it behind a feature flag and not requiring any special changes to nginx.conf (Other than pointing to the correct subdir) I don't consider it as high priority but if there is more demand for it I might try to add it sooner |
Hi yonjah
I have a suggestion and not knowing github etiquette I hope this method is ok.
The suggestion is to use search-terminating matching in piwigo-nginx-site for the /upload /galleries and /_data locations, i.e.
location ^~ /upload ...
The reason is that it's more robust in case inexperienced people try to "improve" your config by adding location regexp matches which may otherwise override these prefix matches. I speak from experience.
Thanks very much for this plugin and server config.
Best
The text was updated successfully, but these errors were encountered: