Skip to content

Instantly share code, notes, and snippets.

@ethowitz
Created September 17, 2021 18:10
Show Gist options
  • Save ethowitz/105744a7d4ffaa74f509b0c0bb3da605 to your computer and use it in GitHub Desktop.
Save ethowitz/105744a7d4ffaa74f509b0c0bb3da605 to your computer and use it in GitHub Desktop.
# application configuration
[global]
logger_name = tokenserver
debug = true
# token server configuration
[tokenserver]
backend = tokenserver.assignment.sqlnode.SQLNodeAssignment
sqluri = mysql://sample_user:sample_password@localhost/tokenserver_rs
standard_collections = true
quota_size = 5242880
pool_size = 100
pool_recycle = 3600
reset_on_return = true
create_tables = true
max_post_records = 4000
batch_upload_enabled = true
force_consistent_sort_order = true
applications = sync-1.5
# secrets_file = tokenserver/tests/secrets
secrets.backend = mozsvc.secrets.FixedSecrets
secrets.secrets = "secret"
service_entry = https://example.com
spanner_entry = https://spanner.example.com
spanner_node_id = 800
# this can be used to lock down the system to only existing accounts
#allow_new_users = true
migrate_new_user_percentage=0
node_type_patterns =
example:*example*
[endpoints]
sync-1.5 = {node}/1.5/{uid}
[fxa]
metrics_uid_secret_key = secret
[oauth]
backend = tokenserver.verifiers.MockOAuthVerifier
#backend = tokenserver.verifiers.RemoteOAuthVerifier
#server_url = "https://oauth.stage.mozaws.net"
# Paster configuration for Pyramid
[filter:catcherror]
paste.filter_app_factory = mozsvc.middlewares:make_err_mdw
[pipeline:main]
pipeline = catcherror
pyramidapp
[app:pyramidapp]
use = egg:tokenserver
pyramid.reload_templates = true
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.debug_templates = true
pyramid.default_locale_name = en
pyramid.includes = pyramid_debugtoolbar
# need to do this programmatically
mako.directories = cornice:templates
[server:main]
use = egg:Paste#http
host = 0.0.0.0
port = 5000
# Begin logging configuration
[loggers]
keys = root, tokenserver
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = INFO
handlers = console
[logger_tokenserver]
level = DEBUG
handlers =
qualname = tokenserver
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
# End logging configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment