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

Fix issue with etesync-server.ini always being loaded.

Fixes #20.
This commit is contained in:
Tom Hacohen 2019-08-04 16:11:47 +01:00
parent 48390b0b01
commit c3b50d3f72
2 changed files with 6 additions and 5 deletions

View File

@ -36,10 +36,11 @@ pip install -r requirements.txt
# Configuration
If you are familiar with Django you can just edit the [settings file](etesync_server/settings.py)
according to the [Django deployment checklist](https://docs.djangoproject.com/en/1.11/howto/deployment/checklist)
if you are not, we also provide a simple [configuration file](etesync-server.ini)
for easy deployment which you can use. You can either edit the provided file or
create one in `/etc/etesync-server`.
according to the [Django deployment checklist](https://docs.djangoproject.com/en/dev/howto/deployment/checklist/)
if you are not, we also provide a simple [configuration file](etesync-server.ini.example)
for easy deployment which you can use.
To use the easy configuration file rename it to `example-server.ini` and place it either at the root of this repository or in `/etc/etesync-server`.
Some particular settings that should be edited are:
* [`ALLOWED_HOSTS`](https://docs.djangoproject.com/en/1.11/ref/settings/#std:setting-ALLOWED_HOSTS)

View File

@ -3,7 +3,7 @@ secret_file = secret.txt
debug = false
[allowed_hosts]
;allowed_host1 = host1.tld
allowed_host1 = example.com
[database]
engine = django.db.backends.sqlite3