source: TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/integration/pylonsapp/development.ini @ 7077

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg-security/TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/integration/pylonsapp/development.ini@7077
Revision 7077, 3.3 KB checked in by pjkersha, 11 years ago (diff)
  • Property svn:keywords set to Id
Line 
1#
2# pylonsapp - Pylons development environment configuration
3#
4# The %(here)s variable will be replaced with the parent directory of this file
5#
6[DEFAULT]
7debug = true
8# Uncomment and replace with the address which should receive any error reports
9#email_to = you@yourdomain.com
10smtp_server = localhost
11error_email_from = paste@localhost
12testConfigDir = %(here)s/../../config
13beakerSessionKeyName = beaker.session.ndg.security
14
15[server:main]
16use = egg:Paste#http
17host = 127.0.0.1
18port = 5000
19
20[pipeline:main]
21pipeline = BeakerSessionFilter
22                   AuthenticationFilter
23                   PylonsTestApp
24
25[app:PylonsTestApp]
26use = egg:pylonsapp
27full_stack = true
28static_files = true
29
30cache_dir = %(here)s/data
31beaker.session.key = pylonsapp
32beaker.session.secret = somesecret
33
34# If you'd like to fine-tune the individual locations of the cache data dirs
35# for the Cache data, or the Session saves, un-comment the desired settings
36# here:
37#beaker.cache.data_dir = %(here)s/data/cache
38#beaker.session.data_dir = %(here)s/data/sessions
39
40# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
41# Debug mode will enable the interactive debugging tool, allowing ANYONE to
42# execute malicious code after an exception is raised.
43#set debug = false
44
45[filter:BeakerSessionFilter]
46paste.filter_app_factory = beaker.middleware:SessionMiddleware
47
48# Cookie name
49beaker.session.key = ndg.security.session
50
51# WSGI environ key name
52environ_key = %(beakerSessionKeyName)s
53beaker.session.secret = rBIvKXLa+REYB8pM/8pdPoorVpKQuaOW
54beaker.cache.data_dir = %(here)s/authn/beaker/cache
55beaker.session.data_dir = %(here)s/authn/beaker/sessions
56
57#beaker.session.cookie_domain = .localhost
58
59[filter:AuthenticationFilter]
60paste.filter_app_factory = ndg.security.server.wsgi.authn:AuthenticationMiddleware
61prefix = authN.
62
63# Set redirect for OpenID Relying Party in the Security Services app instance
64authN.redirectURI = https://localhost:7443/verify
65
66# Default URI to return to if middleware wasn't able to set via HTTP_REFERER or
67# passed return to query argument
68authN.sessionHandler.defaultLogoutReturnToURI = http://localhost:5000/secured/index
69
70# AuthKit Set-up
71authkit.setup.method=cookie
72
73# This cookie name and secret MUST agree with the name used by the security web
74# services app
75authkit.cookie.name=ndg.security.auth
76authkit.cookie.secret=9wvZObs9anUEhSIAnJNoY2iJq59FfYZr
77authkit.cookie.signoutpath = /logout
78
79# Disable inclusion of client IP address from cookie signature due to
80# suspected problem with AuthKit setting it when a HTTP Proxy is in place
81authkit.cookie.includeip = False
82
83#authkit.cookie.params.expires = 2
84#authkit.cookie.params.domain = .localhost
85
86# environ key name for beaker session
87authkit.session.middleware = %(beakerSessionKeyName)s
88
89# Logging configuration
90[loggers]
91keys = root, routes, pylonsapp
92
93[handlers]
94keys = console
95
96[formatters]
97keys = generic
98
99[logger_root]
100level = INFO
101handlers = console
102
103[logger_routes]
104level = INFO
105handlers =
106qualname = routes.middleware
107# "level = DEBUG" logs the route matched and routing variables.
108
109[logger_pylonsapp]
110level = DEBUG
111handlers =
112qualname = pylonsapp
113
114[handler_console]
115class = StreamHandler
116args = (sys.stderr,)
117level = NOTSET
118formatter = generic
119
120[formatter_generic]
121format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] [%(threadName)s] %(message)s
122datefmt = %H:%M:%S
Note: See TracBrowser for help on using the repository browser.