Mercurial > kallithea
comparison kallithea/bin/template.ini.mako @ 4225:3e6291d99a6f kallithea-2.2.5-rebrand
Align and update the outdated ini files and templates
Change default database for development.ini to sqlite
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 02 Jul 2014 19:08:38 -0400 |
parents | 24c0d584ba86 |
children | a68fc4abeda3 |
comparison
equal
deleted
inserted
replaced
4224:1142ebbf04cd | 4225:3e6291d99a6f |
---|---|
1 ## -*- coding: utf-8 -*- | 1 ## -*- coding: utf-8 -*- |
2 <%text> | 2 <%text>################################################################################ |
3 ################################################################################ | 3 ################################################################################ |
4 # Kallithea - config file generated with kallithea-config # | |
4 ################################################################################ | 5 ################################################################################ |
5 # Kallithea - Example config # | |
6 # Built-in functions and variables # | |
7 # The ${here} variable will be replaced with the parent directory of this file # | |
8 # ${uuid()} function will generate a unique hash # | |
9 ################################################################################ | 6 ################################################################################ |
10 </%text> | 7 </%text> |
11 [DEFAULT] | 8 [DEFAULT] |
12 debug = true | 9 debug = true |
13 pdebug = false | 10 pdebug = false |
14 <%text> | 11 <%text> |
15 ################################################################################ | 12 ################################################################################ |
16 ## Uncomment and replace with the address which should receive ## | 13 ## Uncomment and replace with the address which should receive ## |
17 ## any error reports after application crash ## | 14 ## any error reports after application crash ## |
18 ## Additionally those settings will be used by Kallithea mailing system ## | 15 ## Additionally those settings will be used by Kallithea mailing system ## |
19 ################################################################################ | 16 ################################################################################</%text> |
20 </%text> | |
21 #email_to = admin@localhost | 17 #email_to = admin@localhost |
22 #error_email_from = paste_error@localhost | 18 #error_email_from = paste_error@localhost |
23 #app_email_from = kallithea-noreply@localhost | 19 #app_email_from = kallithea-noreply@localhost |
24 #error_message = | 20 #error_message = |
25 #email_prefix = [Kallithea] | 21 #email_prefix = [Kallithea] |
75 <%text>## UWSGI ##</%text> | 71 <%text>## UWSGI ##</%text> |
76 <%text>## run with uwsgi --ini-paste-logged <inifile.ini></%text> | 72 <%text>## run with uwsgi --ini-paste-logged <inifile.ini></%text> |
77 [uwsgi] | 73 [uwsgi] |
78 socket = /tmp/uwsgi.sock | 74 socket = /tmp/uwsgi.sock |
79 master = true | 75 master = true |
80 http = 0.0.0.0:5000 | 76 http = 127.0.0.1:5000 |
81 | 77 |
82 <%text>## set as deamon and redirect all output to file</%text> | 78 <%text>## set as deamon and redirect all output to file</%text> |
83 #daemonize = ./uwsgi_kallithea.log | 79 #daemonize = ./uwsgi_kallithea.log |
84 | 80 |
85 <%text>## master process PID</%text> | 81 <%text>## master process PID</%text> |
86 pidfile = ./uwsgi_kallithea.pid | 82 pidfile = ./uwsgi_kallithea.pid |
87 | 83 |
88 <%text>## stats server with workers statistics, use uwsgitop</%text> | 84 <%text>## stats server with workers statistics, use uwsgitop</%text> |
89 <%text>## for monitoring</%text> | 85 <%text>## for monitoring, `uwsgitop 127.0.0.1:1717`</%text> |
90 stats = 127.0.0.1:1717 | 86 stats = 127.0.0.1:1717 |
91 memory-report = true | 87 memory-report = true |
92 | 88 |
93 <%text>## log 5XX errors</%text> | 89 <%text>## log 5XX errors</%text> |
94 log-5xx = true | 90 log-5xx = true |
146 <%text>## enable proxy prefix middleware</%text> | 142 <%text>## enable proxy prefix middleware</%text> |
147 #filter-with = proxy-prefix | 143 #filter-with = proxy-prefix |
148 | 144 |
149 full_stack = true | 145 full_stack = true |
150 static_files = true | 146 static_files = true |
151 <%text>## Optional Languages</%text> | 147 <%text>## Available Languages:</%text> |
152 <%text>## en, fr, ja, pt_BR, zh_CN, zh_TW, pl, ru</%text> | 148 <%text>## de en fr ja pl pt_BR ru zh_CN zh_TW</%text> |
153 lang = ${lang} | 149 lang = ${lang} |
154 cache_dir = ${here}/data | 150 cache_dir = ${here}/data |
155 index_dir = ${here}/data/index | 151 index_dir = ${here}/data/index |
156 | 152 |
157 <%text>## perform a full repository scan on each server start, this should be</%text> | 153 <%text>## perform a full repository scan on each server start, this should be</%text> |
185 <%text>## path to git executable</%text> | 181 <%text>## path to git executable</%text> |
186 git_path = git | 182 git_path = git |
187 | 183 |
188 <%text>## git rev filter option, --all is the default filter, if you need to</%text> | 184 <%text>## git rev filter option, --all is the default filter, if you need to</%text> |
189 <%text>## hide all refs in changelog switch this to --branches --tags</%text> | 185 <%text>## hide all refs in changelog switch this to --branches --tags</%text> |
190 git_rev_filter=--branches --tags | 186 #git_rev_filter = --branches --tags |
191 | 187 |
192 <%text>## RSS feed options</%text> | 188 <%text>## RSS feed options</%text> |
193 rss_cut_off_limit = 256000 | 189 rss_cut_off_limit = 256000 |
194 rss_items_per_page = 10 | 190 rss_items_per_page = 10 |
195 rss_include_diff = false | 191 rss_include_diff = false |
207 <%text>## white list of API enabled controllers. This allows to add list of</%text> | 203 <%text>## white list of API enabled controllers. This allows to add list of</%text> |
208 <%text>## controllers to which access will be enabled by api_key. eg: to enable</%text> | 204 <%text>## controllers to which access will be enabled by api_key. eg: to enable</%text> |
209 <%text>## api access to raw_files put `FilesController:raw`, to enable access to patches</%text> | 205 <%text>## api access to raw_files put `FilesController:raw`, to enable access to patches</%text> |
210 <%text>## add `ChangesetController:changeset_patch`. This list should be "," separated</%text> | 206 <%text>## add `ChangesetController:changeset_patch`. This list should be "," separated</%text> |
211 <%text>## Syntax is <ControllerClass>:<function>. Check debug logs for generated names</%text> | 207 <%text>## Syntax is <ControllerClass>:<function>. Check debug logs for generated names</%text> |
208 <%text>## Recommended settings below are commented out:</%text> | |
212 api_access_controllers_whitelist = | 209 api_access_controllers_whitelist = |
210 # ChangesetController:changeset_patch, | |
211 # ChangesetController:changeset_raw, | |
212 # FilesController:raw, | |
213 # FilesController:archivefile | |
213 | 214 |
214 <%text>## alternative_gravatar_url allows you to use your own avatar server application</%text> | 215 <%text>## alternative_gravatar_url allows you to use your own avatar server application</%text> |
215 <%text>## the following parts of the URL will be replaced</%text> | 216 <%text>## the following parts of the URL will be replaced</%text> |
216 <%text>## {email} user email</%text> | 217 <%text>## {email} user email</%text> |
217 <%text>## {md5email} md5 hash of the user email (like at gravatar.com)</%text> | 218 <%text>## {md5email} md5 hash of the user email (like at gravatar.com)</%text> |
264 issue_prefix = # | 265 issue_prefix = # |
265 | 266 |
266 <%text>## issue_pat, issue_server_link, issue_prefix can have suffixes to specify</%text> | 267 <%text>## issue_pat, issue_server_link, issue_prefix can have suffixes to specify</%text> |
267 <%text>## multiple patterns, to other issues server, wiki or others</%text> | 268 <%text>## multiple patterns, to other issues server, wiki or others</%text> |
268 <%text>## below an example how to create a wiki pattern</%text> | 269 <%text>## below an example how to create a wiki pattern</%text> |
269 <%text>## wiki-some-id -> https://mywiki.com/some-id</%text> | 270 # wiki-some-id -> https://mywiki.com/some-id |
270 | 271 |
271 #issue_pat_wiki = (?:wiki-)(.+) | 272 #issue_pat_wiki = (?:wiki-)(.+) |
272 #issue_server_link_wiki = https://mywiki.com/{id} | 273 #issue_server_link_wiki = https://mywiki.com/{id} |
273 #issue_prefix_wiki = WIKI- | 274 #issue_prefix_wiki = WIKI- |
274 | 275 |
482 <%text> | 483 <%text> |
483 ################################################################################ | 484 ################################################################################ |
484 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## | 485 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## |
485 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## | 486 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## |
486 ## execute malicious code after an exception is raised. ## | 487 ## execute malicious code after an exception is raised. ## |
487 ################################################################################ | 488 ################################################################################</%text> |
488 </%text> | |
489 set debug = false | 489 set debug = false |
490 <%text> | 490 <%text> |
491 ################################## | 491 ################################## |
492 ### LOGVIEW CONFIG ### | 492 ### LOGVIEW CONFIG ### |
493 ################################## | 493 ################################## |