33 Commits

Author SHA1 Message Date
Mike Sager
095701c0cf Add SYNCSERVER_FORCE_WSGI_ENVIRON to list of configuration options that can be set via environment variables (#100); r=rfk 2017-11-15 08:03:38 +11:00
Ryan Kelly
cf944cf4c9 Update dependencies to fix LocalVerifier support (#93)
Fixes #91, by pulling in a new version of tokenserver's LocalVerifier class that properly supports the extra "idpClaims" property that we use for tracking FxA generation numbers.
2017-05-30 07:33:48 +10:00
Ryan Kelly
72d618f3ee Add support for deploying via dockerflow pipeline. (#90) r=vladikoff 2017-05-25 21:44:36 -04:00
Ryan Kelly
7fe5c0fafc Allow piecemeal overrides of tokenserver backend default config.
Before this change, you have either have to accept the default config
for the tokenserver backend, or specify all config options and hence
duplicate info from earlier in the file.  With this change you can
now just specify anything you want to change and we'll use the defaults
for the rest.
2017-04-10 11:49:33 +10:00
Ryan Kelly
8e693129e6 Add ability to set pool_recycle via config. 2017-04-10 11:39:57 +10:00
Ryan Kelly
146e6e6588 Disable batch-upload API by default, it's not in production yet. 2017-03-10 10:34:44 +11:00
Ryan Kelly
35283e66fd Prep v1.6.0 2016-11-24 10:40:21 +11:00
Ryan Kelly
c5c7de85d8 Use randomly-generated fxa.metrics_uid_secret_key for self-hosters. 2016-08-02 15:18:27 +10:00
Ryan Kelly
3aa07d7f66 Log at WARN level by default, rather than INFO 2016-08-02 15:03:02 +10:00
Louis Sautier
6182f1106d
Fix typo in exception message 2016-04-12 00:15:17 +02:00
Alain
d3c720c705 Fixed crash on sync 2015-11-28 12:22:02 +01:00
Ryan Kelly
150cef8745 Update github-hosted dependencies to latest versions 2015-11-23 14:26:37 +11:00
Ryan Kelly
a521aed39f Use PyOpenSSL for requests module if available 2015-10-05 09:05:09 +11:00
Ryan Kelly
4a9cebf056 Use gunicorn rather than pserve 2015-05-12 17:25:13 +10:00
Ryan Kelly
c4c0fa033a Add "force_wsgi_environ" config option.
This is the nuclear option for when your reverse proxy setup doesn't
place nicely with our request-signing thing - it causes the app to
unilaterally clobber its WSGI environment with values from public_url.
2015-02-13 16:26:17 +11:00
Ryan Kelly
24dbda8f41 Forcibly update host_port if it seems wrong in the environ 2015-02-06 14:45:44 +11:00
Ryan Kelly
d95c1e6a4f Use pool_recycle when connecting to a mysql db 2015-01-09 08:46:15 +11:00
Ryan Kelly
e977089cf9 Fix flake 2014-10-29 15:45:15 +11:00
Ryan Kelly
2d7b87643b Make public_url-mismatch into a hard error. 2014-10-22 14:39:32 +11:00
Ryan Kelly
8441444ce9 Sanity-check public_url on each incoming request. 2014-10-22 09:25:25 +11:00
Ryan Kelly
069804f077 Update to use new simplified mozsvc.metrics infrastructure 2014-05-22 17:46:57 +10:00
Ryan Kelly
28851e3c22 Ensure that default "audience" URL has no path component. 2014-05-15 10:21:31 +10:00
Ryan Kelly
0ee5588101 Expose tokenserver's allow_new_users setting at top-level server config. 2014-05-02 12:58:51 +10:00
Ryan Kelly
02d3cfdc3b Intuit correct SCRIPT_NAME setting from public_url 2014-05-01 14:27:59 +10:00
Dan Callahan
8bec3e9702 Fixup a comment, suppress logging during tests
- Commit 947470d77112a5ee0ab1a037d77104cdb25c18e5 rendered a comment inaccurate
  in syncserver/__init__.py.

- Logging to stdout by default obscures test results; disable the stdout deluge
  by changing the logging class in syncserver/tests.ini
2014-04-16 12:54:40 -05:00
Ryan Kelly
d349bdc76a Update to match latest tokenserver API. 2014-04-16 10:21:09 +10:00
Dan Callahan
947470d771 Log to stdout by default 2014-04-13 16:54:06 -05:00
Ryan Kelly
4b7cab5bd5 Copy db connection pool tweaks from syncstorage. 2014-04-09 03:00:31 +10:00
Ryan Kelly
62526d1625 Default to tokenserver.monkey_patch_gevent = False 2014-04-08 08:42:00 +10:00
Ryan Kelly
ad4afc0ed5 Use a persistent sqlite db by default, rather than in-memory one. 2014-03-25 16:20:24 +11:00
Ryan Kelly
7d3a1a7d04 Add missing "staticnode" file 2014-02-21 09:53:20 +11:00
Ryan Kelly
7603ab1856 Add a simple static node assignment backend, for easier deployment. 2014-02-11 19:58:49 +11:00
Ryan Kelly
d0d47fae3b Initial commit; refactored from server-full2 codebase 2014-02-11 15:03:33 +11:00