From d45c9589ce9faaa677fbe8d3b3599bd884842879 Mon Sep 17 00:00:00 2001 From: Rachel Tublitz Date: Mon, 9 Dec 2019 22:43:00 -0500 Subject: [PATCH] docs: add local syncstorage-rs examples --- .python-version | 1 + syncserver.ini | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .python-version diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..35b46ae --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +2.7.16 diff --git a/syncserver.ini b/syncserver.ini index 31e64c9..ccf1ae0 100644 --- a/syncserver.ini +++ b/syncserver.ini @@ -21,6 +21,7 @@ identity_provider = https://accounts.firefox.com/ # This defines the database in which to store all server data. #sqluri = sqlite:////tmp/syncserver.db +#sqluri = pymysql://sample_user:sample_password@127.0.0.1/syncstorage # This is a secret key used for signing authentication tokens. # It should be long and randomly-generated. @@ -42,3 +43,16 @@ identity_provider = https://accounts.firefox.com/ # you tell the app that it's on HTTPS but it's really on HTTP, so it should # only be used as a last resort and after careful checking of server config. force_wsgi_environ = false + +[tokenserver] +# Use a custom MySQL based syncstorage node hosted at http://localhost:8000 + +# node_url = http://localhost:8000 +# sqluri = pymysql://sample_user:sample_password@127.0.0.1/syncstorage_rs + +[endpoints] +# Replace syncserver endpoints with alternate server implementation, ie: +# MySQL based syncstorage-rs 1.5 server hosted at http://localhost:8000/1.5 + +# "{node}/1.5/{uid}" +# sync-1.5 = "http://localhost:8000/1.5/{uid}"