mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 00:35:51 +03:00
[GH-ISSUE #483] Nginx configuration #314
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#314
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 @donakhseputa on GitHub (Apr 28, 2025).
Original GitHub issue: https://github.com/axllent/mailpit/issues/483
Nginx conf
Docker-compose
when access to https://mydomain.com/mailbox, its show blank page
asset
https://mydomain.com/dist/app.cssinsteadhttps://mydomain.com/mailbox/dist/app.cssWhen I try add environment "MP_WEBROOT: /mailbox/" and restart nginx, page show "page not found"
I try open asset, and URL become
https://mydomain.com/mailbox/mailbox/dist/app.css@axllent commented on GitHub (Apr 28, 2025):
I think you're trying to mix two things here. Note the following is untested, but I'm fairly confident it should work: You want
https://${SERVER_DOMAIN}/mailbox/to return Mailpit, so rather than rewriting anything, setproxy_pass https://mailpit:8025/mailbox/;and remove therewriterule, and finally tell Mailpit that you are using the/mailbox/webroot by setting theMP_WEBROOT: /mailbox/.@github-actions[bot] commented on GitHub (May 6, 2025):
This issue has been marked as stale because it has been open for 7 days with no activity.
@github-actions[bot] commented on GitHub (May 9, 2025):
This issue was closed because there has been no activity since being marked as stale.