[973dd91] | 1 | # |
---|
| 2 | # sipbmp3-web - TurboGears configuration |
---|
| 3 | # |
---|
| 4 | # The %(here)s variable will be replaced with the parent directory of this file |
---|
| 5 | # |
---|
| 6 | [DEFAULT] |
---|
| 7 | # WARGING == If debug is not set to false, you'll get the interactive |
---|
| 8 | # debugger on production, which is a huge security hole. |
---|
| 9 | |
---|
| 10 | debug = false |
---|
| 11 | email_to = you@yourdomain.com |
---|
| 12 | smtp_server = localhost |
---|
| 13 | error_email_from = paste@localhost |
---|
| 14 | |
---|
| 15 | [server:main] |
---|
| 16 | use = egg:Paste#http |
---|
| 17 | host = 0.0.0.0 |
---|
| 18 | port = 8080 |
---|
| 19 | |
---|
| 20 | [app:main] |
---|
| 21 | use = egg:sipbmp3-web |
---|
| 22 | full_stack = true |
---|
| 23 | cache_dir = %(here)s/data |
---|
| 24 | beaker.session.key = sipbmp3web |
---|
| 25 | beaker.session.secret = ${app_instance_secret} |
---|
| 26 | app_instance_uuid = ${app_instance_uuid} |
---|
| 27 | |
---|
| 28 | # If you'd like to fine-tune the individual locations of the cache data dirs |
---|
| 29 | # for the Cache data, or the Session saves, un-comment the desired settings |
---|
| 30 | # here: |
---|
| 31 | #beaker.cache.data_dir = %(here)s/data/cache |
---|
| 32 | #beaker.session.data_dir = %(here)s/data/sessions |
---|
| 33 | # Specify the database for SQLAlchemy to use via |
---|
| 34 | # turbogears.database |
---|
| 35 | # %(here) may include a ':' character on Windows environments; this can |
---|
| 36 | # invalidate the URI when specifying a SQLite db via path name |
---|
| 37 | sqlalchemy.url = sqlite:///%(here)s/somedb.db |
---|
| 38 | sqlalchemy.echo = False |
---|
| 39 | |
---|
| 40 | # WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* |
---|
| 41 | # Debug mode will enable the interactive debugging tool, allowing ANYONE to |
---|
| 42 | # execute malicious code after an exception is raised. |
---|
| 43 | #set debug = false |
---|
| 44 | |
---|
| 45 | # Logging configuration |
---|
| 46 | # Add additional loggers, handlers, formatters here |
---|
| 47 | # Uses python's logging config file format |
---|
| 48 | # http://docs.python.org/lib/logging-config-fileformat.html |
---|
| 49 | |
---|
| 50 | [loggers] |
---|
| 51 | keys = root, sipbmp3web, sqlalchemy, auth |
---|
| 52 | |
---|
| 53 | [handlers] |
---|
| 54 | keys = console |
---|
| 55 | |
---|
| 56 | [formatters] |
---|
| 57 | keys = generic |
---|
| 58 | |
---|
| 59 | # If you create additional loggers, add them as a key to [loggers] |
---|
| 60 | [logger_root] |
---|
| 61 | level = INFO |
---|
| 62 | handlers = console |
---|
| 63 | |
---|
| 64 | [logger_sipbmp3web] |
---|
| 65 | level = INFO |
---|
| 66 | handlers = |
---|
| 67 | qualname = sipbmp3web |
---|
| 68 | |
---|
| 69 | [logger_sqlalchemy] |
---|
| 70 | level = WARN |
---|
| 71 | handlers = |
---|
| 72 | qualname = sqlalchemy.engine |
---|
| 73 | # "level = INFO" logs SQL queries. |
---|
| 74 | # "level = DEBUG" logs SQL queries and results. |
---|
| 75 | # "level = WARN" logs neither. (Recommended for production systems.) |
---|
| 76 | |
---|
| 77 | |
---|
| 78 | # A logger for authentication, identification and authorization -- this is |
---|
| 79 | # repoze.who and repoze.what: |
---|
| 80 | [logger_auth] |
---|
| 81 | level = WARN |
---|
| 82 | handlers = |
---|
| 83 | qualname = auth |
---|
| 84 | |
---|
| 85 | # If you create additional handlers, add them as a key to [handlers] |
---|
| 86 | [handler_console] |
---|
| 87 | class = StreamHandler |
---|
| 88 | args = (sys.stderr,) |
---|
| 89 | level = NOTSET |
---|
| 90 | formatter = generic |
---|
| 91 | |
---|
| 92 | # If you create additional formatters, add them as a key to [formatters] |
---|
| 93 | [formatter_generic] |
---|
| 94 | format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
---|
| 95 | datefmt = %H:%M:%S |
---|