mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Email images don't display when using custom port #945
Reference in New Issue
Block a user
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).
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