mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[GH-ISSUE #1030] Further problems with branding #724
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#724
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 @fuanegua on GitHub (Jun 11, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/1030
Thanks a lot for this great opportunity to run on Raspberry Pi! It works all fine!
… except the custom email-templates. What did I wrong?
I’ve tried it this way:
Also I can’t change the logos and images, so they are outside this folder in
/src/static/images. Is there a way to set this folder to/bw-data/as well?Docker is just a new field to me. So sorry if this question is a little stupid.
@BlackDex commented on GitHub (Jun 13, 2020):
Hello @fuanegua,
The issue is with the
TEMPLATES_FOLDERvariable.You configured it to be in /bw-data/templates/ but you have to look at these variable from within the docker container, and there the data folder is located in
/data.So if you change the from:
-e TEMPLATES_FOLDER=/bw-data/templates/To:
-e TEMPLATES_FOLDER=/data/templates/And copy all the template data in there you should be able to change the templates.
Regarding the images, that is possible using the templates folder.
You can of course host those pictures on an other virtualhost or somewhere else on the web.
Or if they are small embed them in the html code even by using a data uri as the src="" element instead of the location of the image. You can convert an image to a data uri via a site like https://www.site24x7.com/tools/image-to-datauri.html
Also, i would suggest to just enable
RELOAD_TEMPLATESduring template changing and disable it and restart bitwarden once done, else for every request it will render those templates over and over.@fuanegua commented on GitHub (Jun 13, 2020):
Thanks a lot for your help, @BlackDex!
Maybe I don’t understand it exactly. So in my mind I want to put all the template files outside the docker container to be able to edit and change the files via FTP.
So all these files are in
/bw-data/templates.Do I understand you right that I shall save the template files inside the docker container?
Or do I have to create a directory
/data(or/bw-data/data/templates?!) outside the docker container?@BlackDex commented on GitHub (Jun 13, 2020):
With the option
-v /bw-data/:/data/you actually tell docker to mount /bw-data/ in the container as /data/. So outside the container you access the files in/bw-data/inside the container they are accessed via/data/.So if you create a folder
/bw-data/templates/on the host, it will be called/data/templates/within the container.@fuanegua commented on GitHub (Jun 13, 2020):
Okay, thanks! Sounds clear. But unfortunately the hole bitwarden container is not reachable/working, when I create it with:
docker run -d --name bitwarden -v /bw-data/:/data/ -p 8005:80 -e ADMIN_TOKEN=<TOKEN> --restart always -e TEMPLATES_FOLDER=/data/templates/ -e ROCKET_TLS='{certs="/ssl/live/<DOMAIN>/fullchain.pem",key="/ssl/live/<DOMAIN>/privkey.pem"}' -v /etc/letsencrypt/:/ssl/ bitwardenrs/server:raspberryTEMPLATES_FOLDER=data/templates/orTEMPLATES_FOLDER=templates/make the cotainer work again but without the new templates.Anything else I missed?
@BlackDex commented on GitHub (Jun 13, 2020):
Which folders do you have under your own templates? Does it include both admin and email directories? Or only email?
Because that should work.
@fuanegua commented on GitHub (Jun 13, 2020):
Yes it‘s strange.
I‘ve got both
/bw-data/templates/adminand/bw-data/templates/emailin my Pi root directory. In both folders are all hbs files from github. The email hbs are edited.Does a slash at the end matter?
@fuanegua commented on GitHub (Jun 14, 2020):
Got it!
It was simply a broken variable due to copy & paste errors (
{{{instead of{{) inside an edited hbs that brought bitwarden into a restart loop.I finally understood how to read the logs and I think I'm a few steps further with docker. Thanks for your patience @BlackDex! 🙏🏼
@AbdullahZubair commented on GitHub (Jun 21, 2023):
Hi there, @fuanegua!
I apologize for opening this issue after a long period, but I could really use some help. Currently, I'm using the latest version of Vaultwarden with Docker Compose, and I'm looking to customize the web and email aspects to incorporate our organizational branding, including text, logos, and more. I want to ensure that Vaultwarden reflects our organization's identity.
If you could provide any guidance or suggestions on how to achieve this customization, I would greatly appreciate it. I've been exploring the available options, but I'm looking for some expert advice on the best approach.
Thank you so much in advance for your assistance!