From 56c83e9ac969889a5185ba2bb3ac3526049caf58 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Mon, 5 Dec 2022 08:37:54 +0800 Subject: [PATCH] Improve database URL example --- Using-the-PostgreSQL-Backend.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Using-the-PostgreSQL-Backend.md b/Using-the-PostgreSQL-Backend.md index 7ff5387..97768f1 100644 --- a/Using-the-PostgreSQL-Backend.md +++ b/Using-the-PostgreSQL-Backend.md @@ -9,9 +9,9 @@ DATABASE_URL=postgresql://[[user]:[password]@]host[:port][/database] An example docker run environment variable would be: ```-e 'DATABASE_URL=postgresql://user_name:user_password@db_host:5432/vaultwarden'```. If you want to use a custom schema/search-path you need to use the following connection string:
-Note the `%3D` which is an url-encoded `=` sign +Note the URL-encoded characters such as `%20` for the space and `%3D` for `=` sign ```ini -DATABASE_URL=postgresql://user_name:user_password@db_host:5432/vaultwarden?application_name=vaultwarden&options=-c search_path%3Ddb_schema +DATABASE_URL=postgresql://user_name:user_password@db_host:5432/vaultwarden?application_name=vaultwarden&options=-c%20search_path%3Ddb_schema ``` If your password contains special characters, you will need to use percentage encoding.