TheSpaghettiDetective / obico-server

Obico is a community-built, open-source smart 3D printing platform used by makers, enthusiasts, and tinkerers around the world.
https://obico.io
GNU Affero General Public License v3.0
1.5k stars 299 forks source link

[BUG?] Mails from Obico sent to Apple are not showing camera snapshot directly #786

Closed nicktodorov closed 1 year ago

nicktodorov commented 1 year ago

Describe the bug For some reason, notification mails from Obico self hosted server do not show the camera snapshot. There is message "Your network preferences prevent content from loading privately.". But the problem is, that in order to make this work as supposed, I need to turn off completely Private relay feature, which I do not want for obvious reasons. Since this is the only email that has this issue (even span loads correctly), there should be something specific on how Obico emails are working. Apologies if this is a setting I have missed and not a bug, but I could not find anything on this topic specific to Obico.

To Reproduce Steps to reproduce the behavior:

  1. Setup Obico self hosted server
  2. Configure email notifications
  3. Open notification email on an Apple device. It doesn't matter what mail client or device is used, if there is Private Relay (hiding your IP address for email tracking), the problem is reproducible.

Screenshots If applicable, add screenshots to help explain your problem.

Hosting environment (please complete the following information):

kennethjiang commented 1 year ago

Is your self-hosted server using SSL? If so, is it a self-signed SSL certificate?

My best guess is this issue is related to the fact that the image is a link to your own server.

This doesn't look like a bug as it works in Obico cloud. It's likely to be a server configuration issue. You may get help more quickly if you come to our discord server https://obico.io/discord/

nicktodorov commented 1 year ago

Where do I have to set this SSL? In docker, in Django or the ngrok?

kennethjiang commented 1 year ago

@nicktodorov Please refer to other sys admin resources for how you can set up SSL.

I'm closing this issue as managing SSL is outside the scope of the Obico server. If there is reason to believe this is really a bug, please come back and reopen it.