Skip to content

Commit 6d0b487

Browse files
author
Lloyd Watkin
committed
Add details about database configuration to the README.md file
1 parent 5a6b1a6 commit 6d0b487

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@ Please see [the example configuration file](https://github.com/buddycloud/buddyc
9595
| sync.purge-on-start | false | | Purge remote data on server start |
9696
| users.presence.persist | false | | If **true** then user presence status is stored in the database rather than in memory |
9797

98+
### Database based configuration
99+
100+
If you prefer to load your configuration from a database then this is possible. Simply load all your configuration key/values into the "configuration" table within the database (__note:__ **jdbc.proxool.driver-url**, **jdbc.user**, and **jdbc.password** values will be ignored). When starting the server set an evironment variable of __DATABASE__ to the Postgres connection string which will connect to your database. For example:
101+
102+
```
103+
DATABASE="jdbc:postgresql://localhost:5432/buddycloud-server?user=buddycloud&password=tellnoone"
104+
```
105+
106+
The server will then use the database values to configure itself.
107+
98108
## Additional content-type plugins
99109
The buddycloud server supports validation of custom content types by means of a plugin system. By default the buddycloud server supports Atom content. Additional content types can be supported by creating an appropriate validator and packaging it as a plugin.
100110

0 commit comments

Comments
 (0)