Add SSL support

This commit is contained in:
jdoe0
2016-06-25 23:59:59 +07:00
parent e093e3981e
commit 1678890d3d
3 changed files with 22 additions and 8 deletions

View File

@@ -21,7 +21,7 @@ this is just a matter of:
install some of the dependencies we need there:
$ virtualenv ankisyncd.env
$ ankisyncd.env/bin/easy_install webob simplejson
$ ankisyncd.env/bin/easy_install webob simplejson eventlet
3. Download and install libanki. You can find the latest release of Anki here:
@@ -38,7 +38,8 @@ install some of the dependencies we need there:
b. Copy the entire directory to /usr/share/anki
4. Copy the example.ini to production.ini and edit for your needs.
4. Copy the example.ini to production.ini and edit for your needs. Warning: If
you disable SSL, login credentials will be transported in plain text!
5. Create authentication database:
@@ -63,9 +64,11 @@ To make Anki use ankisyncd as its sync server, create a file (name it something
like ankisyncd.py) containing the code below and put it in ~/Anki/addons.
import anki.sync
import httplib2
anki.sync.SYNC_BASE = 'http://127.0.0.1:27701/'
anki.sync.SYNC_MEDIA_BASE = 'http://127.0.0.1:27701/msync/'
anki.sync.httpCon = lambda: httplib2.Http()
Replace 127.0.0.1 with the IP address or the domain name of your server if
ankisyncd is not running on the same machine as Anki.