| ; Licensed to the Apache Software Foundation (ASF) under one |
| ; or more contributor license agreements. See the NOTICE file |
| ; distributed with this work for additional information |
| ; regarding copyright ownership. The ASF licenses this file |
| ; to you under the Apache License, Version 2.0 (the |
| ; "License"); you may not use this file except in compliance |
| ; with the License. You may obtain a copy of the License at |
| ; |
| ; http://www.apache.org/licenses/LICENSE-2.0 |
| ; |
| ; Unless required by applicable law or agreed to in writing, |
| ; software distributed under the License is distributed on an |
| ; "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| ; KIND, either express or implied. See the License for the |
| ; specific language governing permissions and limitations |
| ; under the License. |
| |
| [server:main] |
| use = egg:Paste#http |
| host = 0.0.0.0 |
| port = 8080 |
| |
| [app:main] |
| use = config:development.ini#main |
| |
| activitystream.master = mongodb://mongo:27017 |
| |
| ming.main.uri = mongodb://mongo:27017/allura |
| ming.project.uri = mongodb://mongo:27017/project-data |
| ming.task.uri = mongodb://mongo:27017/task |
| |
| scm.repos.root = /allura-data/scm |
| scm.host.ro.git = /allura-data/scm/git$path |
| scm.host.rw.git = /allura-data/scm/git$path |
| scm.host.ro.hg = /allura-data/scm/hg$path |
| scm.host.rw.hg = /allura-data/scm/hg$path |
| scm.host.ro.svn = file:///allura-data/scm/svn$path/ |
| scm.host.rw.svn = file:///allura-data/scm/svn$path/ |
| |
| scm.repos.tarball.enable = true |
| scm.repos.tarball.root = /allura-data/scm/snapshots/ |
| scm.repos.tarball.url_prefix = http://localhost:8080/ |
| |
| solr.server = http://solr:8983/solr |
| |
| smtp_server = outmail |
| smtp_port = 8826 |
| |
| forgemail.host = 0.0.0.0 |
| forgemail.port = 8825 |
| |
| [filter-app:profile] |
| use=egg:keas.profile#profiler |
| next=main |
| |
| [app:task] |
| use = main |
| override_root = task ; TurboGears will use controllers/task.py as root controller |
| |
| [loggers] |
| keys = root, allura, sqlalchemy, paste, pylons, taskdstatus, timermiddleware, tmw_details |
| |
| [handlers] |
| keys = console, stats, taskdstatus, timermiddleware |
| |
| [formatters] |
| keys = generic, stats, timermiddleware |
| |
| ; If you create additional loggers, add them as a key to [loggers] |
| [logger_root] |
| level = INFO |
| handlers = console, stats |
| |
| [logger_allura] |
| level = INFO |
| handlers = |
| qualname = allura |
| |
| [logger_sqlalchemy] |
| level = INFO |
| handlers = |
| qualname = sqlalchemy.engine |
| ; "level = INFO" logs SQL queries. |
| ; "level = DEBUG" logs SQL queries and results. |
| ; "level = WARN" logs neither. (Recommended for production systems.) |
| |
| [logger_paste] |
| level = INFO |
| qualname = paste |
| handlers = |
| |
| [logger_pylons] |
| level = INFO |
| qualname = pylons |
| handlers = |
| |
| [logger_tmw_details] |
| ; DEBUG will include every instrumented call in our logging |
| level = INFO |
| qualname = timermiddleware |
| handlers = |
| |
| [logger_taskdstatus] |
| level = INFO |
| qualname = taskdstatus |
| handlers = taskdstatus |
| |
| [logger_timermiddleware] |
| level = INFO |
| handlers = timermiddleware |
| qualname = stats |
| propagate = 0 |
| |
| ; If you create additional handlers, add them as a key to [handlers] |
| [handler_console] |
| class = StreamHandler |
| args = (sys.stderr,) |
| level = NOTSET |
| formatter = generic |
| |
| [handler_stats] |
| class = allura.lib.utils.StatsHandler |
| args = ('rtstats.log', 'allura', 1) |
| level = NOTSET |
| formatter = stats |
| |
| [handler_taskdstatus] |
| class = handlers.WatchedFileHandler |
| args = ('taskd_status.log', 'a') |
| level = NOTSET |
| formatter = generic |
| |
| [handler_timermiddleware] |
| class = handlers.WatchedFileHandler |
| ; if you run 'paster serve' in allura/Allura/ then that's where this file will be |
| ; you may want to hard-code a specific directory here. |
| args = ('stats.log', 'a') |
| level = NOTSET |
| formatter = timermiddleware |
| |
| ; If you create additional formatters, add them as a key to [formatters] |
| [formatter_generic] |
| format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
| datefmt = %H:%M:%S |
| |
| [formatter_stats] |
| format = %(asctime)s %(created)d %(kwpairs)s |
| datefmt = %d/%b/%Y:%H:%M:%S UTC |
| |
| [formatter_timermiddleware] |
| format = {"time": "%(asctime)s,%(msecs)03d", "level": "%(levelname)-5.5s", "name": "%(name)s", "message": %(message)s} |
| datefmt = %Y-%m-%d %H:%M:%S |