1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
{
/**
* Configuration to use PostgreSQL instead of the default SQLite
* back-end of Orthanc. You will have to install the
* "orthanc-postgresql" package to take advantage of this feature.
* Have a look at "/usr/share/doc/orthanc-postgresql/README.Debian"
* for a tutorial.
**/
"PostgreSQL" : {
// Enable the use of PostgreSQL to store the Orthanc index?
"EnableIndex" : false,
// Enable the use of PostgreSQL to store the DICOM files?
"EnableStorage" : false,
// Option 1: Specify explicit authentication parameters
"Host" : "localhost",
"Port" : 5432,
"Database" : "orthanc_db",
"Username" : "orthanc_user",
"Password" : "my_password",
// Option 2: Authenticate using PostgreSQL connection URI
// "ConnectionUri" : "postgresql://orthanc_user:my_password@localhost:5432/orthanc_db",
// Whether to enable the locking of the PostgreSQL database
"Lock" : true,
// Whether to connect to PostgreSQL using SSL (new in 3.0)
"EnableSsl" : false,
// Number of retries when connecting to PostgreSQL, or when
// conccurent transactions cannot be serialized (new in 3.0)
"MaximumConnectionRetries" : 10,
// Number of seconds between two attempts when opening a
// connection to PostgreSQL (new in 3.0)
"ConnectionRetryInterval" : 5,
// Number of connections to PostgreSQL in the connection pool
// of the index back-end (new in 4.0)
"IndexConnectionsCount" : 1
}
}
|