-
Notifications
You must be signed in to change notification settings - Fork 583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for context paths #227
Comments
that would be great ! |
Nice idea. |
@sj26 How far is this away from being implemented? We'd love to have this so our containers behind traefic will work nicely again! |
I've just been hitting the same issue - would be great to see a solution to this if possible! |
If it's helpful for anyone else; until this is complete I've been working around it with an nginx container in my docker-compose setup that rewrites the responses using the following location config:
|
I just switched to MailHog. Just need the ProxyPass, ProxyReversePass, and a second ProxyPass for the websocket
|
For #227, allow specifying an http prefix to mount mailcatcher at.
I just added an |
Hi @sj26 . Awesome change. One thing seems to be not working for me tough. Every link changed to /mailcatcher except the attachment link for the mail. For me it's still goes to /messages/1/ instead of /mailcatcher/messages/1/. |
For sj26#227, allow specifying an http prefix to mount mailcatcher at.
I tried the new |
FYI, here's the error you get when pressing the "clear" button:
Coming from
|
This updates mailcatcher to version 0.7.1 to allow usage of the --http-path argument (per sj26/mailcatcher#227).
Don't know if this helps, but we run mailcatcher on our staging servers and use a path instead of port 1080 i.e. domain.com/mc We had everything working except attachments downloads, however, all other URLs were being correctly redirected to /mc/messages except attachment links. Using the nginx config above by @liamjones we edited the following line and it now all works as expected:
|
Mailcatcher uses websockets, so for attachments to work, you also need to filter application/json content:
(So no need for |
|
I got an error while running in Cloudflare with brotli compression on.
I had a different
and was able to run properly |
So that you can put mailcatcher behind a reverse proxy easily. This would make it much easier to use in staging environments, or shared test environments.
The text was updated successfully, but these errors were encountered: