mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 16:56:00 +03:00
[GH-ISSUE #137] White screen when using a docker container with nginx proxy #94
Labels
No labels
awaiting feedback
bug
docker
documentation
enhancement
github_actions
invalid
pull-request
question
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mailpit#94
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gbalatckii on GitHub (Jun 30, 2023).
Original GitHub issue: https://github.com/axllent/mailpit/issues/137
Hi all,
I would like to use Mailpit on our dev environment and for this I use a docker container and I set up a nginx proxy. When I navigate to Mailpit I see a white screen. Can anyone tell me what the problem could be? Thank you!
Best regards,
Georgii
@axllent commented on GitHub (Jun 30, 2023):
What does the response for the app css and app.js return?
@gbalatckii commented on GitHub (Jun 30, 2023):
@axllent
CSS
JS
@axllent commented on GitHub (Jun 30, 2023):
Yeah, both of those have nothing to do with Mailpit, and must be coming from your default app (that nginx is serving, LenoClient?). Your configuration isn't complete either as it does not account for the websocket connection either. I'm not on my computer right now but I'll have a look later today to see if I can dig up anything.
@gbalatckii commented on GitHub (Jun 30, 2023):
Okay, thank you. Locally everything works fine (there is no nginx so no proxy), so I left the docker config as it is.
Will be glad to hear from you
@axllent commented on GitHub (Jun 30, 2023):
Does the url you are accessing have a training slash? http://domain/mailpit/
@gbalatckii commented on GitHub (Jun 30, 2023):
Nope, just
/mailpit@axllent commented on GitHub (Jun 30, 2023):
You'll need to change that for starters, adding both a trailing slash to your proxy as well as the url you are loading. I suspect it will work after that, well the basic web UI anyway, but without websocket support for "live updates". There is a bit of info in the wiki about that.
@axllent commented on GitHub (Jun 30, 2023):
In addition to that, you'll also need to tell Mailpit that you are accessing it under a different webroot, to in your docker compose file you'll need to add/set the environment:
@gbalatckii commented on GitHub (Jul 3, 2023):
Thanks @axllent I will try it out today and let you know
@gbalatckii commented on GitHub (Jul 3, 2023):
Hi @axllent
the routing with trailing slashes works and I can see the default UI, thank you!
Unfortunately I don't see any emails. Do you have a tipp for me, how can I configure a Mailpit as a SMTP server on our environment?
SPRING_MAIL_HOST: ?
SPRING_MAIL_PORT: 1025
SPRING_MAIL_USERNAME: ...
SPRING_MAIL_PASSWORD: ...
APP_NOTIFICATION_PUBLIC_URL: https://...
SPRING_MAIL_PROPERTIES_MAIL_SMTP_AUTH: "true"
SPRING_MAIL_PROPERTIES_MAIL_SMTP_STARTTLS_ENABLE: "true"
SPRING_MAIL_PROPERTIES_MAIL_SMTP_STARTTLS_REQUIRED: "true"
@axllent commented on GitHub (Jul 4, 2023):
@gbalatckii I don't know anything about Spring mail (?), nor have any clue with what options you started mailpit with, so I cannot tell based on the info you have provided so far. By default Mailpit will start without any authentication requirement, and no STARTTLS support (unless you have specifically enabled those). So I'd guess:
@gbalatckii commented on GitHub (Jul 5, 2023):
@axllent okay thank you for your quick support, I think this is not your problem anymore 🙂 Issue is closed