2014-02-06 06:29:34 +00:00
|
|
|
[server:main]
|
2015-05-12 07:25:13 +00:00
|
|
|
use = egg:gunicorn
|
2014-02-06 06:29:34 +00:00
|
|
|
host = 0.0.0.0
|
|
|
|
port = 5000
|
2015-05-12 07:25:13 +00:00
|
|
|
workers = 1
|
|
|
|
timeout = 30
|
2014-02-06 06:29:34 +00:00
|
|
|
|
|
|
|
[app:main]
|
|
|
|
use = egg:syncserver
|
|
|
|
|
|
|
|
[syncserver]
|
2014-04-30 05:50:21 +00:00
|
|
|
# This must be edited to point to the public URL of your server,
|
|
|
|
# i.e. the URL as seen by Firefox.
|
2014-02-06 06:29:34 +00:00
|
|
|
public_url = http://localhost:5000/
|
|
|
|
|
2018-04-03 00:33:35 +00:00
|
|
|
# By default, syncserver will accept identity assertions issued by
|
2019-02-02 09:11:42 +00:00
|
|
|
# any BrowserID issuer. The line below restricts it to accept assertions
|
2018-04-03 00:33:35 +00:00
|
|
|
# from just the production Firefox Account servers. If you are hosting
|
|
|
|
# your own account server, put its public URL here instead.
|
|
|
|
identity_provider = https://accounts.firefox.com/
|
|
|
|
|
2014-02-06 06:29:34 +00:00
|
|
|
# This defines the database in which to store all server data.
|
|
|
|
#sqluri = sqlite:////tmp/syncserver.db
|
2019-12-10 03:43:00 +00:00
|
|
|
#sqluri = pymysql://sample_user:sample_password@127.0.0.1/syncstorage
|
2014-02-06 06:29:34 +00:00
|
|
|
|
|
|
|
# This is a secret key used for signing authentication tokens.
|
2014-04-30 05:50:21 +00:00
|
|
|
# It should be long and randomly-generated.
|
|
|
|
# The following command will give a suitable value on *nix systems:
|
|
|
|
#
|
2014-04-30 05:55:51 +00:00
|
|
|
# head -c 20 /dev/urandom | sha1sum
|
2014-04-30 05:50:21 +00:00
|
|
|
#
|
|
|
|
# If not specified then the server will generate a temporary one at startup.
|
2014-02-06 06:29:34 +00:00
|
|
|
#secret = INSERT_SECRET_KEY_HERE
|
2014-05-02 02:39:46 +00:00
|
|
|
|
|
|
|
# Set this to "false" to disable new-user signups on the server.
|
2018-04-03 00:33:35 +00:00
|
|
|
# Only requests by existing accounts will be honoured.
|
2014-05-02 02:39:46 +00:00
|
|
|
# allow_new_users = false
|
2014-07-24 18:47:33 +00:00
|
|
|
|
2015-02-13 05:26:17 +00:00
|
|
|
# Set this to "true" to work around a mismatch between public_url and
|
|
|
|
# the application URL as seen by python, which can happen in certain reverse-
|
|
|
|
# proxy hosting setups. It will overwrite the WSGI environ dict with the
|
|
|
|
# details from public_url. This could have security implications if e.g.
|
|
|
|
# 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
|
2019-12-10 03:43:00 +00:00
|
|
|
|
|
|
|
[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}"
|
2020-10-09 22:22:21 +00:00
|
|
|
# sync-1.5 = "http://localhost:8000/1.5/{uid}"
|