# How to setup vaultwarden

**URL:** https://dietpi.com/forum/t/how-to-setup-vaultwarden/15293
**Category:** General Discussion
**Created:** [18 December 2022 20:35 UTC](https://dietpi.com/forum/t/how-to-setup-vaultwarden/15293 "2022-12-18T20:35:55Z")
**Posts on this page:** 1
**Showing post:** 16

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [18 December 2022 22:39 UTC](https://dietpi.com/forum/t/how-to-setup-vaultwarden/15293/16 "2022-12-18T22:39:39Z")

</div>

the whole `server` block is not needed. should be fine to use `location` section only. As well you need to disable HTTPS on vaultwarden, to allow HTTP connection. We did something similar for `lighttpd` [Confused Reverse proxy and vaultwarden - #45 by IIMustangII1151](https://dietpi.com/forum/t/confused-reverse-proxy-and-vaultwarden/5762/45) and [Confused Reverse proxy and vaultwarden - #21 by Joulinar](https://dietpi.com/forum/t/confused-reverse-proxy-and-vaultwarden/5762/21)

```auto
nano /mnt/dietpi_userdata/vaultwarden/vaultwarden.env

```

change the following things

```auto
IP_HEADER=X-Forwarded-For
WEBSOCKET_ENABLED=true
WEBSOCKET_ADDRESS=0.0.0.0
WEBSOCKET_PORT=3012
DOMAIN=> [https://domain.com](https://domain.com/)
#ROCKET_TLS={certs="./cert.pem",key="./privkey.pem"}

```

---

_[View the full topic](https://dietpi.com/forum/t/how-to-setup-vaultwarden/15293)._
