-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfassembler_config.ini_tmpl
128 lines (102 loc) · 3.62 KB
/
fassembler_config.ini_tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{{##
This file is used by fassembler to create the configuration for TaskTracker.
It is a Tempita template
##}}
# TaskTracker - Pylons development environment configuration
#
# The %(here)s variable will be replaced with the parent directory of this file
#
[DEFAULT]
debug = false
## FIXME: this should default to something useful:
email_to =
smtp_server = localhost
error_email_from = paste@{{env.fq_hostname}}
var = {{env.var}}
[server:main]
use = egg:Paste#http
host = {{config.host}}
port = {{config.port}}
[app:tasktracker]
use = egg:TaskTracker
## FIXME: I'd prefer some kind of scratch directory
cache_dir = %(var)s/tasktracker/cache-data
cache_expiretime = 60
session_key = tasktracker
## FIXME: this should be auto-generated
session_secret = somesecret
base_config = {{env.base_path}}/etc/build.ini
# If you'd like to fine-tune the individual locations of the cache data dirs
# for Myghty, the Cache data, or the Session saves, un-comment the desired
# settings here:
#myghty_data_dir = %(here)s/data/templates
#cache_data_dir = %(here)s/data/cache
#session_data_dir = %(here)s/data/sessions
# Specify the database for SQLObject to use via pylons.database.PackageHub.
# %(here) may include a ':' character on Windows environments; this can
# invalidate the URI when specifying a SQLite db via path name. Refer to the
# SQLObject documentation for a special syntax to preserve the URI.
sqlobject.dburi = {{config.db_sqlobject}}
database = {{config.db_sqlobject}}
## WARNING: must be false for production
set debug = false
openplans_wrapper = tasktracker.lib.cookieauth:CookieAuth
#openplans_wrapper = tasktracker.lib.signedheaderauth:SignedHeaderAuth
# If uncommented, the Javascript and CSS files will each respectively
# be served as a single file (instead of having to load a file for each
# library):
#compress_resources = true
# where secret stuff lives
topp_secret_filename = {{env.config.get('general', 'topp_secret_filename')}}
topp_admin_info_filename = {{env.config.get('general', 'admin_info_filename')}}
cabochon_password_file = {{env.config.get('general', 'cabochon_user_info')}}
translate_environ topp.project_name = HTTP_X_OPENPLANS_PROJECT
## FIXME: This feels like it should be more dynamic, less explicit, maybe middleware:
translate_environ SCRIPT_NAME = HTTP_X_FORWARDED_PATH
#note: this is a type three universe. "A shoot-on-sight policy is less crazy than it sounds!" -JBR
## FIXME: where should this go?
obsolete_future_history_dir = %(var)s/tasktracker/afh
event_queue_directory = %(var)s/tasktracker/eq
#filter-with = prefix
#
#[filter:prefix]
#use = egg:PasteDeploy#prefix
#prefix = /tasks
[app:test]
use = tasktracker
sqlobject.dburi = {{config.db_test_sqlobject}}
database = {{config.db_test_sqlobject}}
openplans_wrapper = tasktracker.lib.testing_env:TestingEnv
## FIXME: where should this go? Probably scratch is okay in this case
obsolete_future_history_dir = %(here)s/afh-test
fill_environ REMOTE_ADDR = 127.0.0.1
############################################################
## Deliverance-enabled example
############################################################
[filter-app:main]
## FIXME: we should be using something more dynamic:
use = egg:PasteDeploy#prefix
prefix = /tasks
next = tasktracker
# Logging configuration
[loggers]
keys = root, tasktracker
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = INFO
handlers = console
[logger_tasktracker]
level = DEBUG
handlers =
qualname = tasktracker
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
datefmt = %H:%M:%S