evandrofisico / roundcube-imageproxy

A roundcube plugin to proxy remote images using the imageproxy server.
4 stars 3 forks source link

Nginx proxy pass #1

Open ovidiubica opened 5 years ago

ovidiubica commented 5 years ago

I'm wondering if you configured this plugin on Nginx as I cannot get it to work.

evandrofisico commented 5 years ago

Yes, I'm currently using the plugin. In my current configuration, both nginx and imageproxy are running on the same machine, with multiple instances of roundcube running in other hosts.

Is imageproxy running? Can you try to to test it without using the signature key to see if it actually retrieves images?

ovidiubica commented 5 years ago

I tried it without the security key. It appears that I'm stuck on NginX rewriting the URL, as it merges the double slash. 2019/10/15 21:27:09 invalid request URL: malformed URL "/api/imageproxy/sCMU_NQwPExOKOnqXculZ4c7ZJkWTyV3Y8e2TfHW8ekY=/http:/static.contactlab.it/custom_spa/2015/20150218/twitter.png": must provide absolute remote URL

I tried this Nginx location without success.

loxK commented 2 years ago

It is an imageproxy issue, has nothing to do with this roundcube plugin. I have it running on nginx, don't forget the trailing slash:

location /imageproxy/ {
    proxy_pass http://localhost:8080/;
}