Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

146 lines (117 sloc) 3.175 kb
# It is recommended to copy this file to something like campaign-local.ini
# and start the app using bin/pserve campaign-local.ini
[app:main]
use = egg:campaign
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
#db.backend = campaign.storage.sql.Storage
db.type = sqlite
db.db = /tmp/campaigns.sqlite
#db.type = mysql
#db.host = localhost
#db.user = snip
#db.password = snip
#db.db = campaign
# Number of seconds to cache a query
#db.query_window = 1
# Limit the number of annoucements to return
#db.limit = None
# Pool size info
# Max Number of connections
#db.pool.size=5
# Max number of pending connection requests
#db.pool.max_overflow=10
# Time before an idle connection is closed for a fresh one.
#db.recycle=3600
#dbg.traceback = False
#dbg.break_unknown_exception = False
#dbg.self_diag = False
beaker.session.cache_dir = %(here)s/data
beaker.session.key = campaign
beaker.session.secret = Secret.
# For multi-thread/multi-server installs, you'll have to share the cookie
# session some how. The following is one way to do it.
beaker.session.type = cookie
beaker.session.validate_key = Another.Secret
# please make sure to be as specific as possible when declaring these.
auth.valid.domains = ["@mozilla.com", "@mozilla.org"]
# app name for NON Metlog logging messages
logging.name = campaign-manager
logging.use_heka = False
# redirection
# % ( HOST, PATH, ID)
#redir.url = http://%s/%s%s
#redir.host = localhost
# note, this is inserted into the redir.url pattern:
#redir.path = redirect/
# System down for service until...
#
#service_until = Oct. 31 2012 01:30AM PDT
# Fuzz up the thundering herd (seconds)...
#service_fuzz = 30
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 8080
[auth]
backend = campaign.auth.browserid_auth.BrowserIDAuth
[who:plugin:browserid]
use = repoze.who.plugins.browserid:make_plugin
postback_url = /author/
urlopen = urllib2:urlopen
audiences = Set.Domain.In.Ini.File
[who:identifiers]
plugins = authtkt browserid
[who:authenticators]
plugins = authtkt browserid
[who:challengers]
plugins = browserid
# Begin logging configuration
[heka]
# App name to use for Heka Logger messages
logger = campaign-manager
severity = 2
# TCP
stream_class = heka.streams.TcpStream
# Heka Host and port
stream_host = 127.0.0.1
stream_port = 5566
#
global_disabled_decorators = incr_count
[loggers]
keys = root,campaigns
[handlers]
keys = console,file
[formatters]
keys = generic
[logger_root]
level = INFO
handlers = console
[logger_campaigns]
level = NOTSET
handlers = file
qualname = campaigns
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[handler_file]
class = FileHandler
args = ('campaign.log', 'a')
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
# End logging configuration
# uwsgi configuration (if using uwsgi)
[uwsgi]
http-socket = 127.0.0.1:8081
master = true
home = /opt/campaign-manager
processes = 4
log-master = 1
Jump to Line
Something went wrong with that request. Please try again.