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