# 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: "DraftReporter" # 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: "template_toolkit" engines: template: template_toolkit: start_tag: "[%" end_tag: "%]" session: Cookie: secret_key: "unclesamsonmars" Memcached: memcached_servers: "localhost:11211" JSON: # session_dir: "" # use default Sereal: # session_dir: "" # use default DBIx: # ~/perl-lib/Dancer2/Session/DBIx # dsn: "DBI:mysql:database=hilis4;mysql_read_default_file=~/.local/mysql.cnf" dbname: "hilis4" session_config: # ignored cookie_name: "draft.reporter" expires: 86400 YAML: # session_dir: "" # use default DBIC: dsn: "DBI:mysql:hilis4;mysql_read_default_file=~/.local/mysql.cnf" schema_class: "Reporter::Schema" # user: "user" # Username used to connect to the database # password: "password" # Password to connect to the database # resultset: "MySession" # DBIx::Class resultset, defaults to Session id_column: "id" data_column: "a_session" logger: Console::Colored: colored_origin: "cyan" colored_levels: core: "bold bright_white" debug: "bold bright_blue" info: "bold green" warning: "bold yellow" error: "bold yellow on_red" colored_messages: core: "bold bright_white" debug: "bold bright_blue" info: "bold green" warning: "bold yellow" error: "bold yellow on_red" admin_email: "hmds.lth@nhs.net" plugins: # Auth::Extensible - if using non-DPAE login handler, requires user to have entry in # config/users block, otherwise it just bounces to login page without displaying reason Auth::Extensible: # no default pages (login/logout) and disable plugins' login handler: no_default_pages: 1 no_login_handler: 1 # requires a route of same name (or use .tt of same name & auto_page => 1): denied_page: denied realms: config: provider: Config users: - user: raj roles: - admin