From c3b50d3f72a383b265a2922898e252f3eb9af604 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sun, 4 Aug 2019 16:11:47 +0100 Subject: [PATCH] Fix issue with etesync-server.ini always being loaded. Fixes #20. --- README.md | 9 +++++---- etesync-server.ini => etesync-server.ini.example | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) rename etesync-server.ini => etesync-server.ini.example (82%) diff --git a/README.md b/README.md index 47f6fdb..99005c4 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/etesync-server.ini b/etesync-server.ini.example similarity index 82% rename from etesync-server.ini rename to etesync-server.ini.example index 0dabba0..3b8b518 100644 --- a/etesync-server.ini +++ b/etesync-server.ini.example @@ -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