Switch to unified view

a b/pyforge/demo.ini
1
#
2
# pyforge - Pylons development environment configuration
3
#
4
# The %(here)s variable will be replaced with the parent directory of this file
5
#
6
# This file is for deployment specific config options -- other configuration
7
# that is always required for the app is done in the config directory, 
8
# and generally should not be modified by end users. 
9
10
[DEFAULT]
11
debug = true
12
# Uncomment and replace with the address which should receive any error reports
13
#email_to = you@yourdomain.com
14
smtp_server = localhost
15
smtp_port = 50088
16
error_email_from = paste@localhost
17
18
[server:main]
19
use = egg:Paste#http
20
host = 0.0.0.0 
21
port = 50086
22
23
[app:main]
24
use = egg:pyforge
25
full_stack = true
26
use_queue = true
27
#lang = ru
28
cache_dir = %(here)s/data
29
beaker.session.key = pyforge
30
beaker.session.type = cookie
31
beaker.session.secret = 61ece7db-ba8d-49fe-a923-ab444741708c
32
beaker.session.validate_key = 714bfe3612c42390726f
33
34
auth.method = local
35
auth.ldap.server = ldap://localhost
36
auth.ldap.suffix = ou=people,dc=example,dc=com
37
auth.ldap.admin_dn = cn=admin,dc=example,dc=com
38
auth.ldap.admin_password = secret
39
40
gitweb.cgi = /usr/lib/cgi-bin/gitweb.cgi
41
42
static_root = /static/
43
44
# Ming setup
45
ming.main.master = mongo://127.0.0.1:27017/pyforge
46
47
# OEmbed Setup
48
oembed.config = %(here)s/oembed.ini
49
oembed.host = oembed.localhost.localdomain:8080
50
51
# SOLR setup
52
#solr.server = http://localhost:8983/solr
53
solr.server = http://localhost:50065/solr
54
55
# If you'd like to fine-tune the individual locations of the cache data dirs
56
# for the Cache data, or the Session saves, un-comment the desired settings
57
# here:
58
#beaker.cache.data_dir = %(here)s/data/cache
59
#beaker.session.data_dir = %(here)s/data/sessions
60
61
# pick the form for your database
62
# %(here) may include a ':' character on Windows environments; this can
63
# invalidate the URI when specifying a SQLite db via path name
64
# sqlalchemy.url=postgres://username:password@hostname:port/databasename 
65
# sqlalchemy.url=mysql://username:password@hostname:port/databasename
66
67
68
# If you have sqlite, here's a simple default to get you started
69
# in development
70
71
sqlalchemy.url = sqlite:///%(here)s/devdata.db
72
#echo shouldn't be used together with the logging module.
73
sqlalchemy.echo = false
74
sqlalchemy.echo_pool = false
75
sqlalchemy.pool_recycle = 3600
76
77
# if you are using Mako and want to be able to reload
78
# the mako template from disk during the development phase
79
# you should say 'true' here
80
# This option is only used for mako templating engine
81
# WARNING: if you want to deploy your application using a zipped egg
82
# (ie: if your application's setup.py defines zip-safe=True, then you
83
# MUST put "false" for the production environment because there will
84
# be no disk and real files to compare time with.
85
# On the contrary if your application defines zip-safe=False and is
86
# deployed in an unzipped manner, then you can leave this option to true
87
templating.mako.reloadfromdisk = true
88
89
# the compiled template dir is a directory that must be readable by your
90
# webserver. It will be used to store the resulting templates once compiled
91
# by the TemplateLookup system.
92
# During development you generally don't need this option since paste's HTTP
93
# server will have access to you development directories, but in production
94
# you'll most certainly want to have apache or nginx to write in a directory
95
# that does not contain any source code in any form for obvious security reasons.
96
#
97
#templating.mako.compiled_templates_dir = /some/dir/where/webserver/has/access
98
99
# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
100
# Debug mode will enable the interactive debugging tool, allowing ANYONE to
101
# execute malicious code after an exception is raised.
102
#set debug = false
103
104
[app:plugin_test]
105
use = egg:pyforge#plugin_test
106
full_stack = true
107
108
cache_dir = %(here)s/data
109
beaker.session.key = pyforge
110
beaker.session.type = cookie
111
beaker.session.secret = 61ece7db-ba8d-49fe-a923-ab444741708c
112
beaker.session.validate_key = 714bfe3612c42390726f
113
114
# Ming setup
115
ming.main.master = mongo://127.0.0.1:27017/pyforge:test
116
117
# OEmbed Setup
118
oembed.config = %(here)s/oembed.ini
119
oembed.host = oembed.localhost.localdomain:8080
120
121
sqlalchemy.url = sqlite:///%(here)s/devdata.db
122
#echo shouldn't be used together with the logging module.
123
sqlalchemy.echo = false
124
sqlalchemy.echo_pool = false
125
sqlalchemy.pool_recycle = 3600
126
templating.mako.reloadfromdisk = true
127
128
# Logging configuration
129
# Add additional loggers, handlers, formatters here
130
# Uses python's logging config file format
131
# http://docs.python.org/lib/logging-config-fileformat.html
132
133
[loggers]
134
keys = root, pyforge, sqlalchemy
135
136
[handlers]
137
keys = console
138
139
[formatters]
140
keys = generic
141
142
# If you create additional loggers, add them as a key to [loggers]
143
[logger_root]
144
level = INFO
145
handlers = console
146
147
[logger_pyforge]
148
level = DEBUG
149
handlers =
150
qualname = pyforge
151
152
[logger_sqlalchemy]
153
level = INFO
154
handlers =
155
qualname = sqlalchemy.engine
156
# "level = INFO" logs SQL queries.
157
# "level = DEBUG" logs SQL queries and results.
158
# "level = WARN" logs neither.  (Recommended for production systems.)
159
160
161
# If you create additional handlers, add them as a key to [handlers]
162
[handler_console]
163
class = StreamHandler
164
args = (sys.stderr,)
165
level = NOTSET
166
formatter = generic
167
168
# If you create additional formatters, add them as a key to [formatters]
169
[formatter_generic]
170
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
171
datefmt = %H:%M:%S