mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-27 07:58:30 +03:00
postgresql env template #565
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 @etibamecus on GitHub (Jan 16, 2020).
Hello,
I just compiled bitwarden_rs using postgresql.
now i'm setting my bitwarden_rs.env file and I don't really if i'm supposed to point to a database and if yes, what should i set in front of DATABASE_URL=
thanks a lot for all your work !
@xoxys commented on GitHub (Jan 17, 2020):
Connection string should be something like
DATABASE_URL=postgresql://localhost/test?user=fred&password=secret. You'll need a running postgres server and adjust the hostname and user/password values.But I am working on my own bitwarden_rs + postgres setup currently and can say more in a couple of minutes.
@etibamecus commented on GitHub (Jan 17, 2020):
nice !
so if using UNIX socket can it be
DATABASE_URL=postgresql://unix:/var/run/postgresql/.s.PGSQL.5432/test?user=fred&password=secret?would you consider it stable yet to use postgresql ?
thanks again !
@xoxys commented on GitHub (Jan 20, 2020):
Don't know if Unix socket will work, try it. For me the full Postgres URL schema works e.g.:
BITWARDENRS_DATABASE_URL=postgresql://<USER>:<PASS>@<HOSTNAME>:<PORT>/<DBNAME>?sslmode=verify-full&sslrootcert=/etc/ssl/certs/ca-certificates.crtI'm also just a user and not that deep in the code base. For me it works great for now.
@dani-garcia commented on GitHub (May 14, 2020):
Closed due to inactivity.