mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 00:35:51 +03:00
[GH-ISSUE #362] When accessing UI through nginx proxy, just get a white screen. #241
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#241
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 @penright on GitHub (Sep 13, 2024).
Original GitHub issue: https://github.com/axllent/mailpit/issues/362
I hope it is ok to ask a question here.
I am guessing it has to be a configuration issue or I am misunderstanding the web UI.
Docker compose for mailpit
The nginx
The nginx config root is /var/www/app for the larvavel project. There was not one in the example, so I assumed that I needed to add one to the location.
and here is what the nginx logs look like
@axllent commented on GitHub (Sep 13, 2024):
Hi @penright, definitely the right place to ask. So you're proxying
/mailpitto the Mailpit container, however you also need to tell Mailpit that. The Mailpit environment option you're looking for isMP_WEBROOT(see https://mailpit.axllent.org/docs/configuration/runtime-options/).I don't know what the NginX
root /;does, but I strongly suspect your don't need it.Hope this helps!
@penright commented on GitHub (Sep 13, 2024):
I tried many different combinations and that is what I last tried. :-)

I saw we web root env var. It said the default was /. The example was /mail.
So would I set the web root env var to /mail? If so in the docker-compose, do I need to persist that dir?
Then the nginx root would be /mail?
if I docker exec -it into the mailpit container, where would I find the dir?
@axllent commented on GitHub (Sep 13, 2024):
If you have proxied
/mailpitto Mailpit, then your webroot in Mailpit would bemailpit. Does that not work?@axllent commented on GitHub (Sep 13, 2024):
Sorry, the second question you had is where you would find the dir. There is no dir, it's all coming from within the Mailpit binary itself. Mailpit has those files inside itself, so serves them back to the browser. This is why you need to tell Mailpit if you are using an alternative webroot.
@github-actions[bot] commented on GitHub (Sep 21, 2024):
This issue has been marked as stale because it has been open for 7 days with no activity.
@github-actions[bot] commented on GitHub (Sep 24, 2024):
This issue was closed because there has been no activity since being marked as stale.