# 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:** 19

<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: [19 December 2022 10:18 UTC](https://dietpi.com/forum/t/how-to-setup-vaultwarden/15293/19 "2022-12-19T10:18:54Z")

</div>

> [@anarchy](#):
>
> `Dec 18 22:50:06 DietPi vaultwarden[485]: [2022-12-18 22:50:06.913][vaultwarden::api::notifications][INFO] Accepting WS connection from 192.168.1.99:59214`

Played with it. At least I don’t have these entries on my log. But it’s information only about connection from local IP `192.168.1.99`

> [@anarchy](#):
>
> I did `DOMAIN=https://myadd.ddnsprovider.com`

that should be fine. Are you able to access Vaultwarden locally using `http://you.ip.address:8001` now??

My Nginx setup as follow

```auto
nano /etc/nginx/sites-dietpi/vaultwarden.conf

```

added following

```auto
    location / {
      proxy_http_version 1.1;
      proxy_set_header "Connection" "";

      proxy_set_header Host $host;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header X-Forwarded-Proto $scheme;

      proxy_pass http://you.ip.address:8001;
    }

    location /notifications/hub/negotiate {
      proxy_http_version 1.1;
      proxy_set_header "Connection" "";

      proxy_set_header Host $host;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header X-Forwarded-Proto $scheme;

      proxy_pass http://you.ip.address:8001;
    }

    location /notifications/hub {
      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection "upgrade";

      proxy_set_header Host $host;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header Forwarded $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header X-Forwarded-Proto $scheme;

      proxy_pass http://you.ip.address:3012;
    }

```

next, remove `root locating` from `default` config file to avoid duplicate location `/`

```auto
nano /etc/nginx/sites-available/default

```

mark lines for `location /` using `#`

```auto
# location / {
# try_files $uri $uri/ =404;
# }

```

Restart Nginx and you should be done

```auto
systemctl restart nginx.service

```

---

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