2017-10-30 17:52:57 +01:00
|
|
|
[uwsgi]
|
|
|
|
plugins = python
|
|
|
|
master = true
|
|
|
|
protocol = uwsgi
|
2020-11-28 18:03:06 +01:00
|
|
|
socket = /run/__APP__/app.socket
|
2018-11-30 22:33:28 +01:00
|
|
|
chmod-socket = 660
|
2017-10-30 17:52:57 +01:00
|
|
|
virtualenv = __FINALPATH__/local
|
|
|
|
wsgi-file = __FINALPATH__/syncserver.wsgi
|
|
|
|
python-path = __FINALPATH__/local
|
|
|
|
enable-threads = true
|
|
|
|
close-on-exec = true
|
2014-11-15 17:24:32 +01:00
|
|
|
|
|
|
|
[app:main]
|
|
|
|
use = egg:syncserver
|
|
|
|
|
|
|
|
[syncserver]
|
|
|
|
# This must be edited to point to the public URL of your server,
|
|
|
|
# i.e. the URL as seen by Firefox.
|
2017-10-30 17:52:57 +01:00
|
|
|
public_url = https://__DOMAIN____PATH__
|
2014-11-15 17:24:32 +01:00
|
|
|
|
|
|
|
# This defines the database in which to store all server data.
|
2017-10-30 17:52:57 +01:00
|
|
|
sqluri = pymysql://__DB_USER__:__DB_PWD__@localhost/__DB_NAME__
|
2014-11-15 17:24:32 +01:00
|
|
|
|
|
|
|
# This is a secret key used for signing authentication tokens.
|
|
|
|
# It should be long and randomly-generated.
|
|
|
|
# The following command will give a suitable value on *nix systems:
|
|
|
|
#
|
|
|
|
# head -c 20 /dev/urandom | sha1sum
|
|
|
|
#
|
|
|
|
# If not specified then the server will generate a temporary one at startup.
|
2017-10-30 17:52:57 +01:00
|
|
|
secret = __SECRET__
|
2014-11-15 17:24:32 +01:00
|
|
|
|
|
|
|
# Set this to "false" to disable new-user signups on the server.
|
|
|
|
# Only request by existing accounts will be honoured.
|
2014-12-30 17:32:11 +01:00
|
|
|
allow_new_users = true
|
2014-11-15 17:24:32 +01:00
|
|
|
|
2015-12-28 12:08:56 +01: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.
|
2017-10-30 17:52:57 +01:00
|
|
|
force_wsgi_environ = false
|
2015-12-28 12:08:56 +01:00
|
|
|
|
2014-11-15 17:24:32 +01:00
|
|
|
# Uncomment and edit the following to use a local BrowserID verifier
|
2015-12-28 12:08:56 +01:00
|
|
|
# rather than posting assertions to the mozilla-hosted verifier.
|
2014-11-15 17:24:32 +01:00
|
|
|
# Audiences should be set to your public_url without a trailing slash.
|
|
|
|
#[browserid]
|
|
|
|
#backend = tokenserver.verifiers.LocalVerifier
|