FriendsOfFlarum / secure-https

Changes all images using HTTP to HTTPS
https://discuss.flarum.org/d/17771
MIT License
6 stars 7 forks source link

nginx cache rules breaks api route #4

Closed Csineneo closed 1 year ago

Csineneo commented 5 years ago

The cache rules in the officially recommended nginx configuration may causes api route to fail.

There is 404 error when the https proxy is enabled and using the recommended nginx configuration.

I am confused about this issue and cannot understand how the problem is caused.

dsevillamartin commented 5 years ago

Those cache rules should only affect static files, hm... Are you able to access any other API routes? For example, /api, /api/users, /api/users/1...

Csineneo commented 5 years ago

Other api routes are normal except /api/flagrow/download. But even if I remove the cache rules, the /api/flagrow/download still doesn't work.

Here are examples for testing:

  1. with cache rules
  2. without cache rules
al3xLvs commented 5 years ago

Any news? I have the same issue

dsevillamartin commented 5 years ago

I assume it's because of the file types... not sure what could be done from fof/secure-https to fix this...

imorland commented 1 year ago

Closing as stale