source: MILK/trunk/milk_server/development.ini @ 4599

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/MILK/trunk/milk_server/development.ini@4675
Revision 4599, 2.8 KB checked in by cbyrom, 11 years ago (diff)

Create new config file - to specify the help text for the MILK app.
Add code to milkMiddleware to read in all data from this.

Line 
1#
2# milk_server - 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
8email_to = you@yourdomain.com
9smtp_server = localhost
10error_email_from = paste@localhost
11
12[server:main]
13use = egg:Paste#http
14host = 0.0.0.0
15port = 8080
16
17[pipeline:main]
18pipeline = logger main_app
19
20[filter:logger]
21use = egg:Paste#translogger
22
23[app:main_app]
24use = egg:milk_server
25cache_dir = %(here)s/data
26session.key = milk_server
27session.secret = somesecret
28csml_dir = /research/home/spascoe/host/saturn/data/ddc_data/obs
29tmp_dir = %(here)s/data/tmp
30#used for wcs "store":
31publish_dir=%(here)s/milk_server/private/filestore 
32configfile = %(here)s/milk.config
33helpConfigfile = %(here)s/helpText.config
34
35# If you'd like to fine-tune the individual locations of the cache data dirs
36# for Myghty, the Cache data, or the Session saves, un-comment the desired
37# settings here:
38#myghty_data_dir = %(here)s/data/templates
39#cache_data_dir = %(here)s/data/cache
40#session_data_dir = %(here)s/data/sessions
41
42# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
43# Debug mode will enable the interactive debugging tool, allowing ANYONE to
44# execute malicious code after an exception is raised.
45#set debug = false
46
47# AuthKit Set-up
48authkit.setup.method=openid, cookie
49authkit.cookie.secret=secret encryption string
50authkit.cookie.signoutpath = /logout
51authkit.openid.path.signedin=/
52authkit.openid.store.type=file
53authkit.openid.store.config=%(here)s/data/openid
54authkit.openid.session.key = authkit_openid
55authkit.openid.session.secret = random string
56
57authkit.openid.baseurl = http://localhost
58
59# Template for signin
60authkit.openid.template.obj = ndg.security.server.sso.sso.lib.openid_util:make_template
61
62# Handler for parsing OpenID and creating a session from it
63authkit.openid.urltouser = ndg.security.server.sso.sso.lib.openid_util:url2user
64
65# Logging configuration
66# NB, swap values in logger_root if you want more debug logging
67[loggers]
68keys = root, milk_server, ndg
69
70[handlers]
71keys = console, debug_console
72
73[formatters]
74keys = generic, debug
75
76[logger_root]
77level = INFO
78handlers = console
79#level = DEBUG
80#handlers = debug_console
81
82[logger_milk_server]
83level = DEBUG
84handlers =
85qualname = milk_server
86
87[logger_ndg]
88level = DEBUG
89handlers =
90qualname = ndg
91
92[logger_authkit]
93level = DEBUG
94handlers =
95qualname = authkit
96
97
98[handler_console]
99class = StreamHandler
100args = (sys.stderr,)
101#level = NOTSET
102level = DEBUG
103formatter = generic
104
105[handler_debug_console]
106class = StreamHandler
107args = (sys.stderr,)
108level = DEBUG
109formatter = debug
110
111[formatter_generic]
112format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
113datefmt = %H:%M:%S
114
115[formatter_debug]
116format = %(asctime)s.%(msecs)03d %(filename)s:%(lineno)d %(levelname)s %(message)s
117datefmt = %H:%M:%S
Note: See TracBrowser for help on using the repository browser.