File: fex.ph

package info (click to toggle)
fex 20200429-1
  • links: PTS, VCS
  • area: non-free
  • in suites: sid
  • size: 3,532 kB
  • sloc: perl: 32,103; sh: 410; javascript: 53; makefile: 42
file content (199 lines) | stat: -rw-r--r-- 6,902 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
# -*- 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 = '';

## 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/',
# );