arunodhayamsam 027d5f
# vim:set sw=4 ts=4 sts=4 ft=perl expandtab:
arunodhayamsam 027d5f
{
arunodhayamsam 027d5f
    ####################
arunodhayamsam 027d5f
    # Hypnotoad settings
arunodhayamsam 027d5f
    ####################
arunodhayamsam 027d5f
    # see http://mojolicio.us/perldoc/Mojo/Server/Hypnotoad for a full list of settings
arunodhayamsam 027d5f
    hypnotoad => {
arunodhayamsam 027d5f
        # array of IP addresses and ports you want to listen to
arunodhayamsam 027d5f
        # you can specify a unix socket too, like 'http+unix://%2Ftmp%2Flufi.sock'
arunodhayamsam 027d5f
        listen => ['http://0.0.0.0:8081'],
arunodhayamsam 027d5f
        # if you use Lufi behind a reverse proxy like Nginx, you want to set proxy to 1
arunodhayamsam 027d5f
        # if you use Lufi directly, let it commented
arunodhayamsam 027d5f
        #proxy  => 1,
arunodhayamsam 027d5f
arunodhayamsam 027d5f
        # Please read http://mojolicious.org/perldoc/Mojo/Server/Hypnotoad#workers
arunodhayamsam 027d5f
        # to adjust this to your server
arunodhayamsam 027d5f
        workers => 30,
arunodhayamsam 027d5f
        clients => 1,
arunodhayamsam 027d5f
    },
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Put a way to contact you here and uncomment it
arunodhayamsam 027d5f
    # You can put some HTML in it
arunodhayamsam 027d5f
    # MANDATORY
arunodhayamsam 17bcb2
    contact       => 'Contact page',
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Put an URL or an email address to receive file reports and uncomment it
arunodhayamsam 027d5f
    # It's for make reporting illegal files easy for users
arunodhayamsam 027d5f
    # MANDATORY
arunodhayamsam 17bcb2
    report => '{{ _report }}',
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Array of random strings used to encrypt cookies
arunodhayamsam 027d5f
    # optional, default is ['fdjsofjoihrei'], PLEASE, CHANGE IT
arunodhayamsam 027d5f
    #secrets        => ['fdjsofjoihrei'],
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Name of the instance, displayed next to the logo
arunodhayamsam 027d5f
    # optional, default is Lufi
arunodhayamsam 027d5f
    #instance_name => 'Lufi',
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Choose a theme. See the available themes in `themes` directory
arunodhayamsam 027d5f
    # Optional, default is 'default'
arunodhayamsam 027d5f
    #theme         => 'default',
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Length of the random URL
arunodhayamsam 027d5f
    # optional, default is 8
arunodhayamsam 027d5f
    #length            => 8,
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # How many URLs will be provisioned in a batch ?
arunodhayamsam 027d5f
    # optional, default is 5
arunodhayamsam 027d5f
    #provis_step       => 5,
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Max number of URLs to be provisioned
arunodhayamsam 027d5f
    # optional, default is 100
arunodhayamsam 027d5f
    #provisioning      => 100,
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Length of the modify/delete token
arunodhayamsam 027d5f
    # optional, default is 32
arunodhayamsam 027d5f
    #token_length      => 32,
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Max file size, in octets
arunodhayamsam 027d5f
    # You can write it 100*1024*1024
arunodhayamsam 027d5f
    # optional, no default
arunodhayamsam 027d5f
    #max_file_size     => 104857600,
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # If you want to have piwik statistics, provide a piwik image tracker
arunodhayamsam 027d5f
    # Only the image tracker is allowed, no javascript
arunodhayamsam 027d5f
    # optional, no default
arunodhayamsam 027d5f
    #piwik_img         => 'https://piwik.example.org/piwik.php?idsite=1&rec=1',
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Broadcast_message which will displayed on the index page
arunodhayamsam 027d5f
    # optional, no default
arunodhayamsam 027d5f
    #broadcast_message => 'Maintenance',
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Default time limit for files
arunodhayamsam 027d5f
    # Valid values are 0, 1, 7, 30 and 365
arunodhayamsam 027d5f
    # optional, default is 0 (no limit)
arunodhayamsam 027d5f
    #default_delay     => 0,
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Number of days after which the files will be deleted, even if they were uploaded with "no delay" (or value superior to max_delay)
arunodhayamsam 027d5f
    # A warning message will be displayed on homepage
arunodhayamsam 027d5f
    # optional, default is 0 (no limit)
arunodhayamsam 027d5f
    #max_delay         => 0,
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Size thresholds: if you want to define max delays for different sizes of file
arunodhayamsam 027d5f
    # The keys are size in Bytes, you can't have 10*1000*10000 as key
arunodhayamsam 027d5f
    # If a file is smaller than the smallest configured size, it will have a expiration delay of max_delay (see above)
arunodhayamsam 027d5f
    # optional, default is using max_delay (see above) for all sizes
arunodhayamsam 027d5f
    #delay_for_size  => {
arunodhayamsam 027d5f
    #    10000000   => 90, # between 10MB and 50MB => max is 90 days, less than 10MB => max is max_delay (see above)
arunodhayamsam 027d5f
    #    50000000   => 60, # between 50MB ans 1GB  => max is 60 days
arunodhayamsam 027d5f
    #    1000000000 => 2,  # more than 1GB         => max is 2 days
arunodhayamsam 027d5f
    #},
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # URL sub-directory in which you want Lufi to be accessible
arunodhayamsam 027d5f
    # example: you want to have Lufi under https://example.org/lufi/
arunodhayamsam 027d5f
    # => set prefix to '/lufi' or to '/lufi/', it doesn't matter
arunodhayamsam 027d5f
    # optional, defaut is /
arunodhayamsam 027d5f
    #prefix        => '/',
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Array of authorized domains for API calls.
arunodhayamsam 027d5f
    # If you want to authorize everyone to use the API: ['*']
arunodhayamsam 027d5f
    # optional, no domains allowed by default
arunodhayamsam 027d5f
    #allowed_domains => ['http://1.example.com', 'http://2.example.com'],
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # String of the URL to be redirected to when accessing /logout
arunodhayamsam 027d5f
    # optional, default is no redirection after logging out
arunodhayamsam 027d5f
    #logout_custom => 'https://sso.example.com/logout?redirect_uri=https%3A%2F%2Fexample.com',
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Define a path to the upload directory, where the uploaded files will be stored
arunodhayamsam 027d5f
    # You can define it relative to lufi directory or set an absolute path
arunodhayamsam 027d5f
    # Remember that it has to be in a directory writable by Lufi user
arunodhayamsam 027d5f
    # optional, default is 'files'
arunodhayamsam 027d5f
    #upload_dir => 'files',
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    #!!!!!!!!!!!!!!!
arunodhayamsam 027d5f
    # EXPERIMENTAL !
arunodhayamsam 027d5f
    #!!!!!!!!!!!!!!!
arunodhayamsam 027d5f
    # You can store files on Swift object storage (https://en.wikipedia.org/wiki/OpenStack#Swift) instead of filesystem
arunodhayamsam 027d5f
    # Please read https://metacpan.org/pod/Net::OpenStack::Swift#SYNOPSIS to know how to configure this setting
arunodhayamsam 027d5f
    # IMPORTANT: add a `container` key in it, to let Lufi know which container to use. This is not a regular Net::OpenStack::Swift setting, but Lufi need it.
arunodhayamsam 027d5f
    # EXPERIMENTAL: if the upload or download of files are stucked, reload Lufi and create a cron task to reload Lufi once a day
arunodhayamsam 027d5f
    # You can copy Lufi files to Swift object storage by launching the command `carton exec script/lufi copyFilesToSwift` (can take a long time)
arunodhayamsam 027d5f
    # optional, no default
arunodhayamsam 027d5f
    #swift => {
arunodhayamsam 027d5f
    #  auth_url    => 'https://auth-endpoint-url/v2.0',
arunodhayamsam 027d5f
    #  user        => 'userid',
arunodhayamsam 027d5f
    #  password    => 'password',
arunodhayamsam 027d5f
    #  tenant_name => 'project_id',
arunodhayamsam 027d5f
    #  container   => 'lufi'
arunodhayamsam 027d5f
    #},
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Allow to add a password on files, asked before allowing to download files
arunodhayamsam 027d5f
    # optional, default is 0
arunodhayamsam 027d5f
    #allow_pwd_on_files => 0,
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Force all files to be in "Burn after reading mode"
arunodhayamsam 027d5f
    # optional, default is 0
arunodhayamsam 027d5f
    #force_burn_after_reading => 0,
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # If set, the files' URLs will always use this domain
arunodhayamsam 027d5f
    # optional, no default
arunodhayamsam 027d5f
    #fixed_domain => 'example.org',
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Abuse reasons
arunodhayamsam 027d5f
    # Set an integer in the abuse field of a file in the database and it will not be downloadable anymore
arunodhayamsam 027d5f
    # The reason will be displayed to the downloader, according to the reasons you will configure here.
arunodhayamsam 027d5f
    # optional, no default
arunodhayamsam 027d5f
    #abuse => {
arunodhayamsam 027d5f
    #   0 => 'Copyright infringment',
arunodhayamsam 027d5f
    #   1 => 'Illegal content',
arunodhayamsam 027d5f
    #},
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    ###############
arunodhayamsam 027d5f
    # Mail settings
arunodhayamsam 027d5f
    ###############
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Mail configuration
arunodhayamsam 027d5f
    # See https://metacpan.org/pod/Mojolicious::Plugin::Mail#EXAMPLES
arunodhayamsam 027d5f
    # optional, default to sendmail method with no arguments
arunodhayamsam 027d5f
    #mail => {
arunodhayamsam 027d5f
    #    # Valid values are 'sendmail' and 'smtp'
arunodhayamsam 027d5f
    #    how => 'smtp',
arunodhayamsam 027d5f
    #    howargs => ['smtp.example.org']
arunodhayamsam 027d5f
    #},
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Email sender address
arunodhayamsam 027d5f
    # optional, default to no-reply@lufi.io
arunodhayamsam 027d5f
    #mail_sender => 'no-reply@lufi.io',
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Disable sending mail through the server
arunodhayamsam 027d5f
    # optional, default is false
arunodhayamsam 027d5f
    #disable_mail_sending => 0,
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    #############
arunodhayamsam 027d5f
    # DB settings
arunodhayamsam 027d5f
    #############
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Choose what database you want to use
arunodhayamsam 027d5f
    # Valid choices are sqlite, postgresql and mysql (all lowercase)
arunodhayamsam 027d5f
    # optional, default is sqlite
arunodhayamsam 027d5f
    # dbtype => 'sqlite',
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # SQLite ONLY - only used if dbtype is set to sqlite
arunodhayamsam 027d5f
    # Define a path to the SQLite database
arunodhayamsam 027d5f
    # You can define it relative to lufi directory or set an absolute path
arunodhayamsam 027d5f
    # Remember that it has to be in a directory writable by Lufi user
arunodhayamsam 027d5f
    # optional, default is lufi.db
arunodhayamsam 027d5f
    # db_path           => 'lufi.db',
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # PostgreSQL ONLY - only used if dbtype is set to postgresql
arunodhayamsam 027d5f
    # These are the credentials to access the PostgreSQL database
arunodhayamsam 027d5f
    # mandatory if you choosed postgresql as dbtype
arunodhayamsam 027d5f
    pgdb => {
arunodhayamsam 027d5f
        database => 'lufi',
arunodhayamsam 027d5f
        host     => 'localhost',
arunodhayamsam 027d5f
        # optional, default is 5432
arunodhayamsam 027d5f
        port     => 5432,
arunodhayamsam 027d5f
        user     => 'DBUSER',
arunodhayamsam 027d5f
        pwd      => 'DBPASSWORD',
arunodhayamsam 027d5f
        # https://mojolicious.org/perldoc/Mojo/Pg#max_connections
arunodhayamsam 027d5f
        # optional, default is 1
arunodhayamsam 027d5f
        #max_connections => 1,
arunodhayamsam 027d5f
    },
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # MySQL ONLY - only used if dbtype is set to mysql
arunodhayamsam 027d5f
    # These are the credentials to access the MySQL database
arunodhayamsam 027d5f
    # mandatory if you choosed mysql as dbtype
arunodhayamsam 027d5f
    #mysqldb => {
arunodhayamsam 027d5f
    #    database => 'lufi',
arunodhayamsam 027d5f
    #    host     => 'localhost',
arunodhayamsam 027d5f
    #    # optional, default is 3306
arunodhayamsam 027d5f
    #    #port     => 3306,
arunodhayamsam 027d5f
    #    user     => 'DBUSER',
arunodhayamsam 027d5f
    #    pwd      => 'DBPASSWORD',
arunodhayamsam 027d5f
    #    # https://metacpan.org/pod/Mojo::mysql#max_connections
arunodhayamsam 027d5f
    #    # optional, default is 5 (set to 0 to disable persistent connections)
arunodhayamsam 027d5f
    #    #max_connections => 5,
arunodhayamsam 027d5f
    #},
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    #############################################
arunodhayamsam 027d5f
    # LDAP settings (authentication and features)
arunodhayamsam 027d5f
    #############################################
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Set `ldap` if you want that only authenticated users can upload files
arunodhayamsam 027d5f
    # Please note that everybody can still download files
arunodhayamsam 027d5f
    # optional, no default
arunodhayamsam 027d5f
    #ldap => {
arunodhayamsam 027d5f
    #    uri         => 'ldaps://ldap.example.org',                 # server URI
arunodhayamsam 027d5f
    #    user_tree   => 'ou=users,dc=example,dc=org',               # search base DN
arunodhayamsam 027d5f
    #    bind_dn     => 'uid=ldap_user,ou=users,dc=example,dc=org', # search bind DN
arunodhayamsam 027d5f
    #    bind_pwd    => 'secr3t',                                   # search bind password
arunodhayamsam 027d5f
    #    user_attr   => 'uid',                                      # user attribute (uid, mail, sAMAccountName, etc.)
arunodhayamsam 027d5f
    #    user_filter => '(!(uid=ldap_user))',                       # user filter (to exclude some users, etc.)
arunodhayamsam 027d5f
    #    # optional start_tls configuration. See https://metacpan.org/pod/distribution/perl-ldap/lib/Net/LDAP.pod#start_tls
arunodhayamsam 027d5f
    #    # don't set or uncomment if you don't want to configure it
arunodhayamsam 027d5f
    #    start_tls => {
arunodhayamsam 027d5f
    #       verify     => 'optional',
arunodhayamsam 027d5f
    #       clientcert => '/etc/ssl/certs/ca-bundle.pem'
arunodhayamsam 027d5f
    #    }
arunodhayamsam 027d5f
    #},
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # If you've set ldap above, the session will last `session_duration` seconds before
arunodhayamsam 027d5f
    # the user needs to reauthenticate
arunodhayamsam 027d5f
    # optional, default is 3600
arunodhayamsam 027d5f
    #session_duration => 3600,
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # If you use `ldap` for authentication, you can map some attributes from LDAP to be able to access them in Lufi
arunodhayamsam 027d5f
    # Those attributes will be accessible with:
arunodhayamsam 027d5f
    #   $c->current_user->{lufi_attribute_name} in Lufi backend files (all that is in `lib` directory)
arunodhayamsam 027d5f
    #   <%= $self->current_user->{lufi_attribute_name} %> in templates files (in `themes` directory)
arunodhayamsam 027d5f
    #
arunodhayamsam 027d5f
    # Define the attributes like this: `lufi_attribute_name => 'LDAP_attribute_name'`
arunodhayamsam 027d5f
    # Note that you can’t use `username` as a Lufi attribute name: this name is reserved and will contain the login of the user
arunodhayamsam 027d5f
    # optional, no default
arunodhayamsam 027d5f
    #ldap_map_attr => {
arunodhayamsam 027d5f
    #    displayname => 'cn',
arunodhayamsam 027d5f
    #    mail        => 'mail'
arunodhayamsam 027d5f
    #},
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # When using LDAP authentication, LDAP users can invite people (by mail) to use Lufi to send them files without
arunodhayamsam 027d5f
    # being authenticated.
arunodhayamsam 027d5f
    # This is where you configure the behavior of the invitations.
arunodhayamsam 027d5f
    # You may need to fetch some attributes from LDAP to use some invitations settings. See `ldap_map_attr` above.
arunodhayamsam 027d5f
    # optional, no default
arunodhayamsam 027d5f
    #invitations => {
arunodhayamsam 027d5f
    #   # The name of the key set in `ldap_map_attr` (above) that corresponds to the mail of the LDAP user
arunodhayamsam 027d5f
    #   # optional, default is `mail`
arunodhayamsam 027d5f
    #   mail_attr => 'mail',
arunodhayamsam 027d5f
    #   # The `From` header of invitation mail can be the mail of the LDAP user
arunodhayamsam 027d5f
    #   # Be sure to have a mail system that will correctly send the mail from your users! (DKIM, SPF…)
arunodhayamsam 027d5f
    #   # To enable this feature, set it to 1
arunodhayamsam 027d5f
    #   # optional, disabled by default
arunodhayamsam 027d5f
    #   send_invitation_with_ldap_user_mail => 1,
arunodhayamsam 027d5f
    #   # The user is able to set an expiration delay for the invitation.
arunodhayamsam 027d5f
    #   # This expiration delay can’t be more than this setting (in days).
arunodhayamsam 027d5f
    #   # optional, default is 30 days
arunodhayamsam 027d5f
    #   max_invitation_expiration_delay => 30,
arunodhayamsam 027d5f
    #   # Once the guest has submitted his files, he has an additional period of time to submit forgotten files.
arunodhayamsam 027d5f
    #   # You can set that additional period of time in minutes here.
arunodhayamsam 027d5f
    #   # To disable that feature, set it to 0 or less
arunodhayamsam 027d5f
    #   # optional, default is 10 minutes
arunodhayamsam 027d5f
    #   max_additional_period => 10,
arunodhayamsam 027d5f
    #   # Lufi follows privacy-by-design, so, by default, no files URLs (with the decode secret) are stored in database.
arunodhayamsam 027d5f
    #   # However, the concern is different for this case. Storing files URLs makes users able to retrieve the guests’ sent files
arunodhayamsam 027d5f
    #   # from their `invitations` page.
arunodhayamsam 027d5f
    #   # Set to 1 to store guests’ files URLs in database
arunodhayamsam 027d5f
    #   # optional, default is 0 (disabled)
arunodhayamsam 027d5f
    #   save_files_url_in_db => 0,
arunodhayamsam 027d5f
    #   # Users can resend the invitation to their guest. This does not extend the invitation’s expiration delay unless you
arunodhayamsam 027d5f
    #   # set this option to 1.
arunodhayamsam 027d5f
    #   # optional, default is 0 (disabled)
arunodhayamsam 027d5f
    #   extend_invitation_expiration_on_resend => 0,
arunodhayamsam 027d5f
    #},
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    #########################
arunodhayamsam 027d5f
    # Htpasswd authentication
arunodhayamsam 027d5f
    #########################
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Set `htpasswd` if you want to use an htpasswd file instead of ldap
arunodhayamsam 027d5f
    # See 'man htpasswd' to know how to create such file
arunodhayamsam 027d5f
    #htpasswd => 'lufi.passwd',
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    #######################
arunodhayamsam 027d5f
    # HTTP Headers settings
arunodhayamsam 027d5f
    #######################
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Content-Security-Policy header that will be sent by Lufi
arunodhayamsam 027d5f
    # Set to '' to disable CSP header
arunodhayamsam 027d5f
    # https://content-security-policy.com/ provides a good documentation about CSP.
arunodhayamsam 027d5f
    # https://report-uri.com/home/generate provides a tool to generate a CSP header.
arunodhayamsam 027d5f
    # optional, default is "base-uri 'self'; connect-src 'self' ws://YOUR_HOST; default-src 'none'; font-src 'self'; form-action 'self'; frame-ancestors 'none'; img-src 'self' blob:; media-src blob:; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'"
arunodhayamsam 027d5f
    #csp => "",
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # X-Frame-Options header that will be sent by Lufi
arunodhayamsam 027d5f
    # Valid values are: 'DENY', 'SAMEORIGIN', 'ALLOW-FROM https://example.com/'
arunodhayamsam 027d5f
    # Set to '' to disable X-Frame-Options header
arunodhayamsam 027d5f
    # See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
arunodhayamsam 027d5f
    # Please note that this will add a "frame-ancestors" directive to the CSP header (see above) accordingly
arunodhayamsam 027d5f
    # to the chosen setting (See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-ancestors)
arunodhayamsam 027d5f
    # optional, default is 'DENY'
arunodhayamsam 027d5f
    #x_frame_options => 'DENY',
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # X-Content-Type-Options that will be sent by Lufi
arunodhayamsam 027d5f
    # See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options
arunodhayamsam 027d5f
    # Set to '' to disable X-Content-Type-Options header
arunodhayamsam 027d5f
    # optional, default is 'nosniff'
arunodhayamsam 027d5f
    #x_content_type_options => 'nosniff',
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # X-XSS-Protection that will be sent by Lufi
arunodhayamsam 027d5f
    # See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection
arunodhayamsam 027d5f
    # Set to '' to disable X-XSS-Protection header
arunodhayamsam 027d5f
    # optional, default is '1; mode=block'
arunodhayamsam 027d5f
    #x_xss_protection => '1; mode=block',
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    #########################
arunodhayamsam 027d5f
    # Lufi cron jobs settings
arunodhayamsam 027d5f
    #########################
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Expired files will be kept for 2 additional days after the expiration time has passed!
arunodhayamsam 027d5f
    # The reasoning behind this is to allow downloads to complete and avoid deleting them while
arunodhayamsam 027d5f
    # they are still being tranfered.
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Number of days senders' IP addresses are kept in database
arunodhayamsam 027d5f
    # After that delay, they will be deleted from database (used with script/lufi cron cleanbdd)
arunodhayamsam 027d5f
    # optional, default is 365
arunodhayamsam 027d5f
    keep_ip_during    => 1,
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Max size of the files directory, in octets
arunodhayamsam 027d5f
    # Used by script/lufi cron watch to trigger an action
arunodhayamsam 027d5f
    # optional, no default
arunodhayamsam 027d5f
    max_total_size    => 10*1024*1024*1024,
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Default action when files directory is over max_total_size (used with script/lufi cron watch)
arunodhayamsam 027d5f
    # Valid values are 'warn', 'stop-upload' and 'delete'
arunodhayamsam 027d5f
    # Please, see README.md
arunodhayamsam 027d5f
    # optional, default is 'warn'
arunodhayamsam 027d5f
    policy_when_full  => 'warn',
arunodhayamsam 027d5f
arunodhayamsam 027d5f
    # Files which are not viewed since delete_no_longer_viewed_files days will be deleted by the cron cleanfiles task
arunodhayamsam 027d5f
    # If delete_no_longer_viewed_files is not set, the no longer viewed files will NOT be deleted
arunodhayamsam 027d5f
    # optional, no default
arunodhayamsam 027d5f
    delete_no_longer_viewed_files => 1,
arunodhayamsam 027d5f
};