# This is the main configuration file of your Dancer2 app
# env-related settings should go to environments/$env.yml
# all the settings in this file will be loaded at Dancer's startup.
# Your application's name
appname: "OutreachPatientAccess"
# The default layout to use for your application (located in
# views/layouts/main.tt)
layout: "main"
# when the charset is set to UTF-8 Dancer2 will handle for you
# all the magic of encoding and decoding. You should not care
# about unicode within your app when this setting is set (recommended).
charset: "UTF-8"
# template engine
# simple: default and very basic template engine
# template_toolkit: TT
# template: "simple"
template: "template_toolkit"
db_name: outreach_patient_access
engines:
session:
Cookie:
secret_key: 0utr3ach
default_duration: 3600
template:
template_toolkit:
start_tag: '[%'
end_tag: '%]'
PLUGINS:
Dumper: 'Template::Plugin::DataPrinter'
plugins:
Database:
dsn: "dbi:mysql:database=outreach_patient_access;mysql_read_default_file=~/.local/mysql.cnf"
connection_check_threshold: 10
dbi_params:
RaiseError: 1
AutoCommit: 1
# to suppress debug msg "adding mysql_enable_utf8 to DBI connection params
# to enable UTF-8 support":
mysql_enable_utf8: 1
# log_queries: 1 # only dumps D::P::Database method queries (quick_select, etc)
# on_connect_do:
# handle_class: 'DBIx::Simple' # database() expects dbh, not an object
Email:
# set default headers (optional):
headers:
to: "admin@outreach.service"