%% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 et
[
    %% Riak CS Control
    {riak_cs_control, [
       %% What port to run the application on.
       {port, 8001 },

       %% Instance of Riak CS you wish to talk to.
       {cs_hostname, "s3.amazonaws.com" },
       {cs_port, 80 },
       {cs_protocol, "http" },

       %% Proxy information; necessary if you are using s3.amazonaws.com as
       %% your hostname.
       {cs_proxy_host, "10.33.32.130" },
       {cs_proxy_port,  8084},

       %% Credentials you want the application to run as.
       {cs_admin_key, "BQS93ZEJBVW7TRQROUFL" },
       {cs_admin_secret, "1gI7mdcrOuZkZ1hQgrhMSdw10Tn-c7rviB3ytA==" },

       %% Specify the bucket name for administration options.
       {cs_administration_bucket, "riak-cs" }
    ]},

    {lager, [
       %% What handlers to install with what arguments
       %% The defaults for the logfiles are to rotate the files when
       %% they reach 10Mb or at midnight, whichever comes first, and keep
       %% the last 5 rotations. See the lager README for a description of
       %% the time rotation format:
       %% https://github.com/basho/lager/blob/master/README.org
       %%
       %% If you wish to disable rotation, you can either set the size to 0
       %% and the rotation time to "", or instead specify a 2-tuple that only
       %% consists of {Logfile, Level}.
       {handlers, [
                   {lager_console_backend, info},
                   {lager_file_backend, [
                                         {"./log/error.log", error, 10485760, "$D0", 5},
                                         {"./log/console.log", info, 10485760, "$D0", 5}
                                        ]}
                  ]},

       %% Whether to write a crash log, and where.
       %% Commented/omitted/undefined means no crash logger.
       {crash_log, "./log/crash.log"},

       %% Maximum size in bytes of events in the crash log - defaults to 65536
       {crash_log_msg_size, 65536},

       %% Maximum size of the crash log in bytes, before its rotated, set
       %% to 0 to disable rotation - default is 0
       {crash_log_size, 10485760},

       %% What time to rotate the crash log - default is no time
       %% rotation. See the lager README for a description of this format:
       %% https://github.com/basho/lager/blob/master/README.org
       {crash_log_date, "$D0"},

       %% Number of rotated crash logs to keep, 0 means keep only the
       %% current one - default is 0
       {crash_log_count, 5},

       %% Whether to redirect error_logger messages into lager - defaults to true
       {error_logger_redirect, true}
    ]},

    %% SASL config
    {sasl, [
        {sasl_error_logger, false}
    ]}
].
