1
0
mirror of https://github.com/etesync/server synced 2024-11-29 12:08:07 +00:00

Add directives for .ini style configuration

Pierre-Alain TORET 2019-05-21 16:14:19 +02:00
parent 0e7bdce734
commit 57ccd797cc

@ -1,4 +1,12 @@
SQLite is the default storage backend setup in the file settings.py with the block : SQLite is the default storage backend setup.
It's configured both in the default `etesync-server.ini` file with the following block
[database]
engine = django.db.backends.sqlite3
name = db.sqlite3
and using the Django style in `etesync_server/settings.py` with the block :
DATABASES = { DATABASES = {
'default': { 'default': {
@ -38,6 +46,17 @@ You will need to setup a database to hold your data.
exit exit
### Configure EteSync for PostgreSQL ### Configure EteSync for PostgreSQL
Either using the .ini configuration file
[database]
engine = django.db.backends.postgresql
name = etesync
user = etesync
password = etesync
host = 127.0.0.1
port = 5432
Or using Django style configuration.
DATABASES = { DATABASES = {
'default': { 'default': {
@ -73,3 +92,4 @@ This should end up running with no errors.
`./manage.py runserver 127.0.0.1:8000` if you are behind a reverse-proxy for example `./manage.py runserver 127.0.0.1:8000` if you are behind a reverse-proxy for example
### Enjoy EteSync ! ### Enjoy EteSync !