# General application configuration
name                        Parley
terms_accept_uri            /terms/accept
default_uri                 /forum/list
posts_per_page              10
threads_per_page            25
search_results_per_page     25
replies_have_own_subject    0

# site skinning
# the value is:
#  - the template directory in root/
#  - the extra CSS file to include *after* the default (if we're faling back
#    to the default)
#site_skin                   skin1
# disable this at your own risk!
skin_default_fallback       1
# if you really, really, really, really, don't want the default CSS used
# set this to "0"
skin_default_css            1

# "Add This"
add_this_account            chiselwright

# Google Analytics - change this for your "Web Property ID", or comment out to
# disable
google_analytics_id         UA-116361-5

<google_adsense>
    enabled                 = 1

    # default language for ads
    google_language         = "en"; 
    # your adsense identifier
    google_ad_client        = "pub-2964145353238376";

    <ad728_90>
        # 728x90, created 31/12/08
        google_ad_slot      = "4846354265";
        google_ad_width     = 728;
        google_ad_height    = 90;
    </ad728_90>
</google_adsense>

<recaptcha>
    enabled         = 0
    pub_key         = 6Lem9QIAAAAAANXlFW-lph_VKyKvkSmukwPtwv_W
    priv_key        = 6Lem9QIAAAAAADDrLvTuD7dz5HIHlRxFfSRhOzsz
</recaptcha>

# comment out any log levels you don't want to see in your logs
# 'info' and 'debug' are common choices for suppresing in a live environment
log_levels                  info
log_levels                  debug
log_levels                  warn
log_levels                  error
log_levels                  fatal

# database connection
<Model::ParleyDB>
    schema_class            Parley::Schema
    connect_info            dbi:Pg:dbname=parley;host=localhost
    connect_info            parley
    connect_info
    <connect_info>
        AutoCommit          1
        quote_char          __literal(")__
        name_sep            __literal(.)__
    </connect_info>
</Model::ParleyDB>

# emails; perldoc Catalyst::Plugin::Email
# this passes options as an array :(
# XXX Do we still need this?
email   SMTP
email   localhost

# the name and email address that system generated emails should appear to
# come from
<alerts>
    from_address            parley@localhost
    from_name               Parley
</alerts>



################################################################################
# Lines Below Here Should Not Neet Changing.
# You do so at your own risk
################################################################################

# how we authenticate user logins
# perldoc Catalyst::Authentication::Store::DBIx::Class
<authentication>
    default_realm                   members
    <realms>
        <members>
            <store>
                class               DBIx::Class
                user_class          ParleyDB::Authentication
                id_field            username

                # authorization
                role_relation       roles
                role_field          name
            </store>
            <credential>
                password_field      password
                password_type       hashed
                password_hash_type  MD5
                class               Password
            </credential>
        </members>
    </realms>
</authentication>

<authorization>
    <dbic>
        role_class                  ParleyDB::Role
        role_field                  name
        role_rel                    map_user_role
        user_role_user_field        authentication_id
    </dbic>
</authorization>

# We have more than one View class. This is the one we use by default
default_view                TT

# Template Toolkit Options
<View::TT>
    EVAL_PERL               0
    PRE_CHOMP               0
    POST_CHOMP              1
    PRE_PROCESS             header
    COMPILE_DIR             /tmp/parley-ttcache
    CONTEXT
    POST_PROCESS            footer
</View::TT>

# JSON view class options
<View::JSON>
    expose_stash            json_data
</View::JSON>

# configure the ::Static plugin
<static>
    ignore_extensions   asp
    ignore_extensions   php
</static>

# configure the session storage
<session>
    dbic_class  ParleyDB::Session
    expires     3600
</session>
