voidlabs / mosaico

Mosaico - Responsive Email Template Editor
https://mosaico.io
GNU General Public License v3.0
1.7k stars 501 forks source link

Mosaico targetting localhost instead of external ip #476

Closed Dominik-cmd closed 5 years ago

Dominik-cmd commented 5 years ago

Hey, I'm running mailtrain, which also uses mosaico library for the templates.

I'm running it on my VPS, and I can connect normally through external ip.

When I upload an image through mosaico, I can see it in the logs:

info HTTP POST /editorapi/upload?type=template&id=2&editor=mosaico 200 64.992 ms - 493

And browser network log:

http://51.145.140.243:3000/editorapi/upload?type=template&id=2&editor=mosaico

But when mosaico tries to make a GET request for the same image, it uses localhost:

http://localhost:3000/mosaico/uploads/0/51bf9c7fdf0d4303140c4949afd1d7b8-1.jpg

Which obviously gets connection refused, since nothing is running on my local computer.

Is this a bug, or a configuration error, or anything like it? Any help appreciated

bago commented 5 years ago

Sounds like a Mailtrain issue. Open an issue in their github project.