Closed penright closed 1 month ago
Hi @penright, definitely the right place to ask. So you're proxying /mailpit
to the Mailpit container, however you also need to tell Mailpit that. The Mailpit environment option you're looking for is MP_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!
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?
If you have proxied /mailpit
to Mailpit, then your webroot in Mailpit would be mailpit
. Does that not work?
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.
This issue has been marked as stale because it has been open for 7 days with no activity.
This issue was closed because there has been no activity since being marked as stale.
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