mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[GH-ISSUE #544] custom email templates won't work #350
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#350
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 @soyezcloud on GitHub (Jul 24, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/544
hello,
trying to figure out why bitwarden_rs docker won't load the email templates from the
TEMPLATES_FOLDERvariable. tried a lof of things, read all stuff, but something I don't get it.here's my commnd line :
sudo docker run -d --name abc \ --rm \ -e ROCKET_TLS={certs='"/ssl/fullchain.pem",key="/ssl/privkey.pem"'} \ -v /ssl/keys/:/ssl/ \ -v /icon_cache/ \ -e SMTP_HOST=smtp.smtpserver.com \ -e SMTP_FROM=yo@mydomain \ -e SMTP_FROM_NAME=mydomain \ -e SMTP_PORT=587 \ -e SMTP_SSL=true \ -e SMTP_USERNAME=498eeb4 \ -e SMTP_PASSWORD=498eeb4 \ -e INVITATIONS_ALLOWED=true \ -e DISABLE_2FA_REMEMBER=false \ -e SIGNUPS_ALLOWED=false \ -e ROCKET_PORT='8000' \ -e DOMAIN=https://mydomain:8000 \ -v /bw-data-sv/:/data/ \ -p 0.0.0.0:8000:8000 \ -e RELOAD_TEMPLATES=true \ -e TEMPLATES_FOLDER=data/templates \ -e LOG_LEVEL=debug \ -e LOG_FILE=/log.txt \ bitwardenrs/server:latestfrom the debug file, the output of the email is the original one. it seems to not loading the path correctly as the folder have the custom email templates .hbs files.
host folder /bw-data-sv/templates
do you see something wrong ? should I need to create my own docker image ?
thank you for any tips,
@dani-garcia commented on GitHub (Jul 30, 2019):
I think the templates need to be in a email subfolder, so:
bw-data/templates/email/<name>.hbs@soyezcloud commented on GitHub (Jul 30, 2019):
even with
/bw-data-sv/templates/email/*.hbs/data/templates/email/*.hbsfile, the template won't load ,the log returns always
and we have modified the subject in hbs file for "joignez-vous" (french translation),
and as you can see, the default subject "Join.." appears.
Should I need to create my own docker image?
@dani-garcia commented on GitHub (May 13, 2020):
Closed due to inactivity.