mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-27 01:06:01 +03:00
[GH-ISSUE #126] WSS Calls - Always use the IP:PORT instead of the current UI origin #83
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#83
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 @sgalinski on GitHub (Jun 10, 2023).
Original GitHub issue: https://github.com/axllent/mailpit/issues/126
Problem: I'm proxying the UI to have a more readable name for internal reasons. The WSS calls fail, because of a wrong destination.
This seems to be the problematic code.
This could also be a configuration option. I hope that this can be implemented. Mailpit is a real great successor of Mailhog. :)
@axllent commented on GitHub (Jun 10, 2023):
The secure websocket connections are using the same host as the web UI, so the issue/solution here is not that you need to manually override the wss path, it is that your proxy isn't configured properly to proxy websockets. Please see the first section on https://github.com/axllent/mailpit/wiki/Troubleshooting and let me know if this solves your issue?
@sgalinski commented on GitHub (Jun 11, 2023):
Thanks. This works pretty well after some research including your mentioned links.
BTW: Here is a chef cookbook for Mailpit. It contains the installation, auto-start with systemd and the apache proxy configuration. Maybe helpful for someone else: https://gitlab.sgalinski.de/chef-cookbooks/mailpit
The cookbook depends a little bit on other ones like https://gitlab.sgalinski.de/chef-cookbooks/normal_site and https://gitlab.sgalinski.de/chef-cookbooks/ubuntu_base
I hope that this helps someone else as I didn't found any concrete implementation myself.
@axllent commented on GitHub (Jun 12, 2023):
Thanks for the feedback / links @sgalinski, and glad to hear you got it sorted. Unfortunately documenting the exact steps isn't possible because everyone has a different configurations to proxy, and there are many solutions that can be used to proxy http traffic. I'm closing this as resolved.