Redirects for WebUI

Issue #654 new
Former user created an issue

Hi,

I'm running Poste.io in docker on my Unraid server. It works well, thank you!

Anyway, I'm trying to set up Let's Encrypt for SSL verification and I'm coming unstuck. Webmail is available (both internally and externally) on <mydomainname>/webmail and the administrative panel is on <mydomainname>/admin. Note, <mydomainname> on it's own gets me to the Unraid interface, so somehow the /webmail and /admin URL's are being redirected to pass through to the poste.io docker container.

When I try to get the certificates from LE, however, it verifies ownership by attempting to publish a challenge to <mydomainname>/.well-known/acme-challenge/<UUID> and that doesn't seem to be passed through. If I attempt to access the given URL directly, I get a 404 not found.

So, my question is, where / how is the redirect set up? I obviously need to get /.well-known/acme-challenge/ added to the config somehow.

I hope my question makes sense. I look forward to your response.

Thank you!

Paul

Comments (1)

  1. Paul Simpson

    OK, I have this figured out, although it wasn’t obvious, or easy, so perhaps some detail in the docs / feedback from the WebUI is in order?

    Long story short. I didn’t notice that UnRaid / Docker / Poste was switching my requests from http over to https. I have a reverse proxy (nginx) so when LE tried to access the acme-challenge, it was getting screwed up.

    I modified my nginx config to forward http requests for mail.<mydomain.com> on port 80 to https on my Unraid box and I was able to get the certificate to verify.

  2. Log in to comment