https://github.com/OpenTreeOfLife/phylesystem-api
Raw File
Tip revision: 6ced24117dc17b422a9a2d84bfbada8b4e448000 authored by Emily Jane McTavish on 05 March 2024, 18:10:44 UTC
Merge pull request #264 from OpenTreeOfLife/force-collection-download
Tip revision: 6ced241
development-example.ini
###
# database details; table names used in setup_db.py only
###

[connection_info]
dbname =
dbuser =
password =

[database_tables]
curatorstudytable = curator_study_map
treeotutable = tree_otu_map
curatortable = curator
treetable = tree
studytable = study
otttable = taxonomy
synonymtable = synonym
propertytable = property

###
# app configuration
# http://docs.pylonsproject.org/projects/pyramid/en/1.5-branch/narr/environment.html
###

[app:main]
use = egg:phylesystem_api

pyramid.reload_templates = true
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.default_locale_name = en
pyramid.includes =
    pyramid_debugtoolbar
    pyramid_beaker

cache.regions = short_term, long_term
cache.type = memory
# cache more dynamic stuff (e.g. main phylo tree) for just 10 minutes
cache.short_term.expire = 600
# store most data for 24 hrs, or until a restart
cache.long_term.expire = 86400
#cache.long_term.expire = never

# point to this file once it's installed
config_file_path="{{ phylesystem_api_config_location }}/config.ini"

###
# database
###



# By default, the toolbar only appears for clients from IP addresses
# '127.0.0.1' and '::1'.
# debugtoolbar.hosts = 127.0.0.1 ::1

###
# wsgi server configuration
###

[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543

###
# logging configuration
# http://docs.pylonsproject.org/projects/pyramid/en/1.5-branch/narr/logging.html
###

[loggers]
keys = root, phylesystem_api

[handlers]
keys = console, filelog

[formatters]
keys = generic

[logger_root]
level = INFO
handlers = console

[logger_phylesystem_api]
level = DEBUG
handlers = filelog
qualname = phylesystem_api

[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic

[handler_filelog]
class = FileHandler
args = ('phylesystem_api.log','a') #can't handle sub dirs or tildae at the moment
level = NOTSET
formatter = generic

[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
back to top