mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[GH-ISSUE #1418] Email images don't display when using custom port #950
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#950
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 @JOHLC on GitHub (Feb 20, 2021).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/1418
Subject of the issue
Email images don't display when using custom port
Your environment
Install method: Docker
Clients used: Any
Reverse proxy and version: Nginx
Version of mysql/postgresql: Unknown

Other relevant information:
Possible workarounds:


-- Use Base64 encoding so the image doesn't need to call a local resource
-- Allow user to specify port for static content like that
-- Serve the content from an online source instead of locally
Steps to reproduce
Set custom https port number
Setup SMTP email
Receive email from Bitwarden RS
Notice issue
Expected behavior
Images should display in the emails from Bitwarden

Actual behavior
Images broken in the email - in my case this is because I use a custom port and the email is hardcoded to default https port

Correct image url https://mydomain.com:5448/bwrs_static/logo-gray.png
Url used in the html email: https://mydomain.com/bwrs_static/logo-gray.png
Relevant logs
@JOHLC commented on GitHub (Feb 20, 2021):
Neverminded I was able to resolve this by setting domain url with the port number in the admin panel

@BlackDex commented on GitHub (Feb 20, 2021):
As the screenshot already tells you, your domain configuration is not correct. If you run bitwarden an other port, you also need to configure that as as
DOMAIN, So include the:5684