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] |
---|
7 | debug = true |
---|
8 | # Uncomment and replace with the address which should receive any error reports |
---|
9 | #email_to = you@yourdomain.com |
---|
10 | smtp_server = localhost |
---|
11 | error_email_from = paste@localhost |
---|
12 | testConfigDir = %(here)s/../../config |
---|
13 | beakerSessionKeyName = beaker.session.ndg.security |
---|
14 | |
---|
15 | [server:main] |
---|
16 | use = egg:Paste#http |
---|
17 | host = 127.0.0.1 |
---|
18 | port = 5000 |
---|
19 | |
---|
20 | [pipeline:main] |
---|
21 | pipeline = BeakerSessionFilter |
---|
22 | AuthenticationFilter |
---|
23 | PylonsTestApp |
---|
24 | |
---|
25 | [app:PylonsTestApp] |
---|
26 | use = egg:pylonsapp |
---|
27 | full_stack = true |
---|
28 | static_files = true |
---|
29 | |
---|
30 | cache_dir = %(here)s/data |
---|
31 | beaker.session.key = pylonsapp |
---|
32 | beaker.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] |
---|
46 | paste.filter_app_factory = beaker.middleware:SessionMiddleware |
---|
47 | |
---|
48 | # Cookie name |
---|
49 | beaker.session.key = ndg.security.session |
---|
50 | |
---|
51 | # WSGI environ key name |
---|
52 | environ_key = %(beakerSessionKeyName)s |
---|
53 | beaker.session.secret = rBIvKXLa+REYB8pM/8pdPoorVpKQuaOW |
---|
54 | beaker.cache.data_dir = %(here)s/authn/beaker/cache |
---|
55 | beaker.session.data_dir = %(here)s/authn/beaker/sessions |
---|
56 | |
---|
57 | #beaker.session.cookie_domain = .localhost |
---|
58 | |
---|
59 | [filter:AuthenticationFilter] |
---|
60 | paste.filter_app_factory = ndg.security.server.wsgi.authn:AuthenticationMiddleware |
---|
61 | prefix = authN. |
---|
62 | |
---|
63 | # Set redirect for OpenID Relying Party in the Security Services app instance |
---|
64 | authN.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 |
---|
68 | authN.sessionHandler.defaultLogoutReturnToURI = http://localhost:5000/secured/index |
---|
69 | |
---|
70 | # AuthKit Set-up |
---|
71 | authkit.setup.method=cookie |
---|
72 | |
---|
73 | # This cookie name and secret MUST agree with the name used by the security web |
---|
74 | # services app |
---|
75 | authkit.cookie.name=ndg.security.auth |
---|
76 | authkit.cookie.secret=9wvZObs9anUEhSIAnJNoY2iJq59FfYZr |
---|
77 | authkit.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 |
---|
81 | authkit.cookie.includeip = False |
---|
82 | |
---|
83 | #authkit.cookie.params.expires = 2 |
---|
84 | #authkit.cookie.params.domain = .localhost |
---|
85 | |
---|
86 | # environ key name for beaker session |
---|
87 | authkit.session.middleware = %(beakerSessionKeyName)s |
---|
88 | |
---|
89 | # Logging configuration |
---|
90 | [loggers] |
---|
91 | keys = root, routes, pylonsapp |
---|
92 | |
---|
93 | [handlers] |
---|
94 | keys = console |
---|
95 | |
---|
96 | [formatters] |
---|
97 | keys = generic |
---|
98 | |
---|
99 | [logger_root] |
---|
100 | level = INFO |
---|
101 | handlers = console |
---|
102 | |
---|
103 | [logger_routes] |
---|
104 | level = INFO |
---|
105 | handlers = |
---|
106 | qualname = routes.middleware |
---|
107 | # "level = DEBUG" logs the route matched and routing variables. |
---|
108 | |
---|
109 | [logger_pylonsapp] |
---|
110 | level = DEBUG |
---|
111 | handlers = |
---|
112 | qualname = pylonsapp |
---|
113 | |
---|
114 | [handler_console] |
---|
115 | class = StreamHandler |
---|
116 | args = (sys.stderr,) |
---|
117 | level = NOTSET |
---|
118 | formatter = generic |
---|
119 | |
---|
120 | [formatter_generic] |
---|
121 | format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] [%(threadName)s] %(message)s |
---|
122 | datefmt = %H:%M:%S |
---|