# 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" email_from: "no-reply@hmds.info" paginator: # how many rows per page: page_item_count: 20 # how many pages either side of current: siblings: 5 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 # if using no_login_handler, denied_page requires a route of same name (or use # .tt of same name & auto_page => 1): denied_page: denied realms: users: provider: Reporter::DPAE::DB db_name: hilis4 db_cols: users_table: users roles_table: user_functions # using view to accomodate default group + custom user permissions user_roles_table: views.user_permission # optionally set the column names (see the SUGGESTED SCHEMA # section below for the default names; if you use them, they'll # Just Work) users_id_column: id roles_id_column: id roles_role_column: function_name users_username_column: username users_password_column: password # user_role -> users FK: user_roles_user_id_column: user_id # user_role -> roles FK: user_roles_role_id_column: roles_id disable_roles: 0 # for user_profile (optional - for use in .tt); roles_key: roles Ajax: content_type: 'application/json'