-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsample.config
68 lines (49 loc) · 1.95 KB
/
sample.config
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
[DEFAULT]
# This file contains shared config info for upload.py and ifdbize.py.
# It must be readable by www-data and admins.
# The directories of interest.
IncomingDir = /var/ifarchive/incoming
TrashDir = /var/ifarchive/trash
ArchiveDir = /var/ifarchive/htdocs/if-archive
# SQLite database for admin tasks.
DBFile = /var/ifarchive/lib/sql/admin.db
# Shelve path where IFDB IDs are stored (for ifdbize.py).
IFDBIdMapFile = /var/ifarchive/lib/ifids
# Max total size of files in the incoming directory.
# Currently: one gigabyte
MaxIncomingDirSize = 1073741824
# This is a secret shared with IFDB.
IFDBCommitKey = XXXX
# This is a secret shared with Unbox.
UnboxRefreshKey = YYYY
# If true, the admin page can only be logged into via https, not http.
# This is a safeguard against cookie-snooping attacks.
# It also means that we run BuildScriptFile with "sudo", which is
# overloaded, I know, sorry.
SecureSite = true
[AdminTool]
# URI (on the web domain) where the admin script runs.
AppRoot = /admin
# URI (on the web domain) where the admin page's CSS file lives.
AppCSSURI = /misc/admintool.css
# Jinja template dir.
TemplateDir = /var/ifarchive/lib/admintool
# Log file.
LogFile = /var/ifarchive/logs/admintool.log
# Path for build-indexes script. This must take zero time; that is, it must
# background the real work.
BuildScriptFile = /var/ifarchive/bin/build-indexes-bg
# Path for build-indexes lock file.
BuildLockFile = /var/ifarchive/htdocs/build.lock
# Path for the build-indexes output file.
BuildOutputFile = /var/ifarchive/htdocs/build.out
# Path for uncache script. This must take zero time; that is, it must
# background the real work.
UncacheScriptFile = /var/ifarchive/bin/uncache-bg
# Duration of a log-in session, unless extended.
# Currently: ten days (in seconds)
MaxSessionAge = 864000
# Age at which to delete files in /trash.
# Currently: thirty days (in seconds). Note that Index-* files are deleted
# in a quarter of this time.
MaxTrashAge = 2592000