mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-09 09:13:02 +03:00
Docker-compose with nginx for raspberry pi #1792
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 @MeiRos on GitHub.
I'm still studying Docker and if there are pros who have some spare time, it would be nice if you can read through my setup and say something about it. Thank You! :)
docker-compose.yml
mysite.conf (edited this file)
Mysite.conf is mostly taken from the Wiki. It's Shauder's proxy example. I did some modifications.
I had warnings in the log.
2020/02/26 17:22:32 [warn] 7#7: *33 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/1/01/0000000011 while reading upstream, client: 192.168.1.25, server: home.domain, request: "GET /fonts/Open_Sans-normal-400.woff HTTP/2.0", upstream: "http://192.168.144.20:80/fonts/Open_Sans-normal-400.woff", host: "home.domain", referrer: "https://home.domain/app/main.bedb15f54ccaf67e0102.css"I tried first to add buffer sizes to 16k, but it didn't help. Then I add temp file size to 0. No more warnings.If this looks good to everybody, I'd like to add this to Wiki. With this guide you can install Bitwarden_rs and nginx proxy very easily on Raspberry pi.
I use acme.sh to get certificates.
@dani-garcia commented on GitHub:
Closed due to inactivity.
@shauder commented on GitHub:
I do not run on a RPi. My entire stack is running on an Intel 4790k with 32gb of RAM. It is quite a beefy server. It was my old gaming computer before I decided to upgrade.
Domain is actually named as my domain but I changed it. I have several domains and I store the certificate config in them.
The oauth config is for using this: https://github.com/pusher/oauth2_proxy
@MeiRos commented on GitHub:
Thanks for sharing @shauder Great example for me to study. Can you please share your domain.conf and oauth.conf? 😊
The warning is quite strange indeed. I don't know if it's just because of my Raspi and WiFi. With the help of Google I found that temp size can be 0. There were thoughts that client connection is slow and that's why temp file will be written if it's possible. In my case temp file is not making my system faster and looks like it's working with 0 setting. So unnecessary step is disabled.
Btw, are you running Bitwarden_rs also on Raspi?
PS
Sorry, I've been busy. It took a few days before I had time for this.
@shauder commented on GitHub:
I probably need to revisit my own settings but this is my full config. Not sure why you had to add the temp file size details.
The proxy.conf file included has these details in it.