Not sure if the is the beall - endall solution.
in shifts (app in the store) …
the settings are saved using a /settings/… url.
Problem put goes through location / { try_files … }.
A put to /… is NOT allowed, as there is no proxy_pass inside the location block,
The following seems to work:
error_page 405 =200 @post_static ; # handle 405 errors using te @post_static block.
location @post_static {
proxy_pass https://$server_name/index.php/$request_uri ; # do proxy_pass
proxy_redirect off;
}
location / { # handle . requests.
try_files $uri /index.php$request_uri;
}
Without this post requests fail with 405 error. blocking
THe above also might solve an issue with a 404 error resulting from a redirect from
/settings → /settings/ wich nextcloud cannot handle.