Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add readOnlyConnectionString #454

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/getting-started/server/database/ef/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ sure you update the existing values instead of creating new ones
```json
"globalSettings:databaseProvider": "postgres",
"globalSettings:postgreSql:connectionString": "Host=localhost;Username=postgres;Password=example;Database=vault_dev;Include Error Detail=true",

// optional, falls back to the above connection string if not set
"globalSettings:postgreSql:readOnlyConnectionString": "Host=localhost;Username=postgres;Password=example;Database=vault_dev;Include Error Detail=true",
```

</TabItem>
Expand All @@ -116,6 +119,9 @@ sure you update the existing values instead of creating new ones
```json
"globalSettings:databaseProvider": "mysql",
"globalSettings:mySql:connectionString": "server=localhost;uid=root;pwd=example;database=vault_dev",

// optional, falls back to the above connection string if not set
"globalSettings:mySql:readOnlyConnectionString": "server=localhost;uid=root;pwd=example;database=vault_dev",
```

</TabItem>
Expand All @@ -127,6 +133,9 @@ Source path. Use the file location selected in [Database Setup](#database-setup)
```json
"globalSettings:databaseProvider": "sqlite",
"globalSettings:sqlite:connectionString": "Data Source=/path/to/your/server/repo/dev/db/bitwarden.db",

// optional, falls back to the above connection string if not set
"globalSettings:sqlite:readOnlyConnectionString": "Data Source=/path/to/your/server/repo/dev/db/bitwarden.db",
```

</TabItem>
Expand Down