# -*- perl -*- #

## your F*EX server host name (with domain)
$hostname = 'MYHOSTNAME.MYDOMAIN';

## admin email address used in notification emails
## to change it, you MUST call: fac -/ admin-email-address auth-id
$admin = 'fex@'.$hostname;

## server admin email address shown on web page
$ENV{SERVER_ADMIN} = $admin;

## restrict web administration to ip range(s)
@admin_hosts = qw(127.0.0.1 10.0.0.0-10.10.255.255);

## Bcc address for notification emails, must not be empty
$bcc = 'fex';

## send notifications about new F*EX releases (bugfixes!)
$notify_newrelease = $admin;

## optional: download-URLs sent in notification emails
# @durl = qw(
#   http://MYFEXSERVER/fop
#   https://MYFEXSERVER/fop
#   http://MYPROXY/fex/fop
# );

## On AUTO mode the fexserver sends notification emails automatically.
## On MANUAL mode the user must notify the recipients manually.
# $mailmode = 'MANUAL';
$mailmode = 'AUTO';

## send reminder notification email before file expires
$reminder = 'YES';

## optional: your mail domain
## if set it will be used as domain for every user without domain
## local_user ==> local_user@$mdomain
## if not set, addresses without domain produce an error
# $mdomain = 'MY.MAIL.DOMAIN';
# $admin = 'fexmaster@'.$mdomain;

## optional HTML header extra link and logo
# @H1_extra = qw(http://www.MY.ORG http://www.MY.ORG/logo.gif);

## disclaimer to be appended to every notification email
# $disclaimer = 'powered by camelcraft!';

## optional: suppress funny messages
# $boring = 1;

## optional: suppress warning messages about incompatible web browsers
# $nowarning = 'NO';

# locales to present (must be installed!)
# if empty, present all installed locales
# @locales = qw(english swabian);

## default locale: which languange is used in first place
# $default_locale = 'swabian';

## where to store the files and logs, must be writable for user fex!
# $spooldir = "$ENV{HOME}/spool";
# $logdir = $spooldir;

## default quota in MB for recipient; 0 means "no quota"
$recipient_quota = 0;

## default quota in MB for sender; 0 means "no quota"
$sender_quota = 0;

## expiration: keep files that number of days (default)
$keep_default = 5;

## expiration: keep files that number of days (maximum)
$keep_max = 99;

## autodelete: delete files after download (automatically)
##	YES     ==> immediatelly (1 minute grace time)
##	DELAY   ==> after download at next fex_cleanup cronjob run
##      2       ==> 2 days after download (can be any number!)
##	NO      ==> keep until expiration date (see $keep)
$autodelete = 'YES';

## purge: remove file meta-information after $purge days of file deletion
$purge = 3*$keep_default;

## if the file has been already downloaded then subsequentials
## downloads are only allowed from the same client (uses cookies)
## to prevent unwanted file sharing
$limited_download = 'YES';

## allow RECIPIENT = SENDER
## in this case subsequentials downloads from any ip are possible until
## regular file expiration (KEEP); exception for $limited_download
$fex_yourself = 'YES';

## allow overwriting of files
$overwrite = 'YES';

## optional: allow sharing of versioned archives (without autodelete and expire)
# $archive_sharing = 'NO';
## logging for archive sharing
# $share_logging = 'YES';

## optional: allow document publishing (without autodelete and expire)
## $document_exchange = 'NO';

## allow user requests for forgotten auth-IDs (then send by email)
$mail_authid = 'YES';

## check if e-mail addresses are deliverable
$checkaddress = 'YES';

## optional: number of consecutive fail logins after client IP will be blocked
## Fail logins will be recorded in $spooldir/.fail/
# $max_fail = 10

## optional: from which hosts and for which mail domains users may
##           register themselves as full users (must set both!)
# @local_hosts = qw(127.0.0.1 ::1 10.10.100.0-10.10.200.255 129.69.1.129);
# @local_domains = qw(uni-stuttgart.de flupp.org);
# @local_domains = qw(uni-stuttgart.de *.uni-stuttgart.de);

## optional: external users may register themselves as restricted users
##           for local receiving domains and hosts (must set both!)
# @local_rdomains = qw(flupp.org *.flupp.org);
# @local_rhosts = qw(10.0.0.0-10.0.255.255 129.69.1.129);
## optional: allow restricted user registration only by certain domains
# @registration_domains = qw(belwue.de ietf.org);
## optional: allow restricted user registration only by certain hosts
# @registration_hosts = qw(129.69.0.0-129.69.255.255 176.9.84.26);

## optional: allow public upload via http://$hostname/pup?to=$recipient
# @public_recipients = qw(fexmaster@rus.uni-stuttgart.de);
## show or hide all public recipient adresses via http://$hostname/pup
# $hide_public_recipients = 'no';

## optional: allow anonymous usage without authentication for these IP ranges
# @anonymous_upload = qw(127.0.0.1 ::1 10.10.100.0-10.10.200.255 129.69.1.129);

## optional: mailing list addresses (allows multiple downloads)
# @mailing_lists = qw(admin@my.domain *@listserv*);

# forbidden recipients (reject notification emails, etc)
@forbidden_recipients = qw(*@freenet.de);

## optional: forbidden ip addresses for CGIs
# @forbidden_hosts = qw(64.124.0.0-64.125.255.255);

# forbidden user agents (sucking "download manager", etc)
@forbidden_user_agents = qw(
  FDM
  Download.Master
  Java/[\d\.]+
);

## optional: restrict upload to these IP ranges
# @upload_hosts = qw(127.0.0.1 ::1 10.10.100.0-10.10.200.255 129.69.1.129);

## optional: restrict download to these address ranges
# @download_hosts = qw(127.0.0.1 10.10.100.0-10.10.200.255 129.69.1.129);

## optional: restrict access to these IP domains
# @allowed_domains = qw'*'; # ALL domains, but client must have DNS entry!
# @allowed_domains = qw'uni-stuttgart.de flupp.org';

## optional: throttle bandwith for certain addresses (in kB/s)
##           0 means : full speed
##           first match wins
# @throttle = qw(
#	framstag@*:0 microsoft.com:100
#	127.0.0.1:0 202.0.0.0-211.255.255.255:1024
#	[::1]:0 [fe00::0-fe00::ffff]:0
# );

## optional: expire user accounts after x days of inactivity
##           delete=wipe out, notify=send mail to fex admin
# $account_expire = "100:delete";
# $account_expire = "365:notify";

## optional: allowed directories for file linking (see fexsend)
# @file_link_dirs = qw(/sw /nfs/home/exampleuser);

## optional: allow additional directories with static documents
##           $docdir (/home/fex/htdocs) is always allowed implicitly
# @doc_dirs = qw(/sw /nfs/home/exampleuser/htdocs);

## optional: text file with your conditions of using
##           will be append to registrations request replies
# $usage_conditions = "$docdir/usage_conditions.txt";

## optional: redirect URIs
##           URLs with leading ! are active http redirects
# %redirect = (
#   '/fstools/'   => '!http://fex.belwue.de/fstools/',
#   '/usecases/'  => 'http://fex.belwue.de/usecases/',
# );
