mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #1097] 502 Bad Gateway when using Nginx Proxy Manager and Mailu #905
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#905
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 @apainter2 on GitHub (May 13, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1097
I have mailu setup and working, but I would prefer to run it behind a Nginx Reverse Proxy.
I am getting '502 Bad Gateway' for the root address, as well as /webmail, /admin and /admin/ui
Running mailui 1.7 with npm
I am running under docker containerd, and my docker-compose file for the mailu instance 'front' looks like this:
doing a 'ss -ltup' on the console to verify that the mailu webserver for ports 8080 and 8443 are listening show:
The custom ngnix configuration for the proxy host:
Below are some screen grabs of the Nginx Proxy Manager configuration for the proxy settings:

and

There are no mailu error logs, as the web browser is not hitting the mailu_front_1 instance.
Does anyone have any advise on how to go about configuring nginx proxy manager and mailu to play nice with each other?
@apainter2 commented on GitHub (May 21, 2021):
I've made a fill write up on how this was resolved for those who have something similar, over on the mailu git repo issue page, here is the link, it has a full thread discussion on the fix etc.
https://github.com/Mailu/Mailu/issues/1807