forked from res0nat0r/edna
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathedna.conf
132 lines (109 loc) · 3.87 KB
/
edna.conf
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
#
# edna.conf -- configuration file for edna.py
#
[server]
port = 8080
# Disable sending robots.txt file to keep robots away (default enabled)
# robots=0
# Where to fine the HTML page templates
# template-dir = templates
# Where to find icons
# resource-dir = resources
# Which HTML template to use?
# template = default.ezt
# If you want id3 tags, use default_complex.ezt
# template = default_complex.ezt
# Enable costly file information if needed (default disabled)
# fileinfo=1
# Character set encodings
# edna serves UTF-8 encoded pages and needs to know which charset encoding you
# use for your filenames and in your MP3 tags. Multiple encodings may be
# specified in which case each will be tried in the order they are listed.
#encoding = UTF-8,iso8859-1
# If you want to allow downloading of ZIP archives of directory contents,
# specify the maximum size of an archive in MB.
# Note: the ZIP archive is entirely built in memory before being sent and
# will cause edna to consume a lot of memory.
zip = 0
### DOCCO
# binding-hostname = dummy-host.example.com
# binding-hostname = 123.123.123.123
# log can specify "-" for stdout, or a file name. omitting this line
# produces no log.
log = -
# Set to 1 to enable https support
# You need "pyopenssl" module installed to use https:
# http://pypi.python.org/pypi/pyOpenSSL
https = 0
# Certificate file, should be specified if https is enabled
# Default is server.pem
# To generate a certificate file use:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
sslcert = server.pem
[acl]
# if passwords below are not in plain text, you can specify the hash :
#password_hash = md5
#password_hash = sha
# If you wish to restrict to certain hostnames or IP address, specify them here
#allow = host1, host2, host3/24, 123.123.123.123, 2.2.2.2/11
# If you wish to use password protection, enter user password pairs here
#auth = aUser1:aPass1, aUser2:aPass2
# This defines which URLs are protected by a password. Some MP3 players cannot
# handle authentication, for these use either 0 or 1.
# 0 Only check '/'
# 1 Check for all directory indexes (default)
# 2 Check for all requests
#auth_level=2
[sources]
#
# List each source directory (top of the tree). The lines should be of the
# form:
# dirNNN = DIRECTORY = DISPLAY_NAME
#
# WARNING: the DISPLAY-NAME part may *not* have a slash ("/") in it!
# WARNING: each DIRECTORY must exist when edna is started
#
# The NNN part will determine the sort order in the top-level listing.
#
# Windows example:
#dir1 = f:\mp3\transfer = MP3s
#dir2 = f:\bobsmp3 = Bob
#dir3 = g:\MP3's = Bob CD
# Unix example:
dir1 = /mnt/cdrom = MP3 CDROM
dir2 = /mp3/all-albums = Jukebox
[filename_cache]
#
# The server can keep a cached list of filenames which speeds
# up searches.
#
# Refreshes are scheduled once when the server starts and then on a
# schedule which starts 'refresh_offset' seconds after midnight and
# repeatedly 'refresh_interval' seconds thereafter.
#
# If either the offset or the interval is less than 0, then nothing
# is cached; this means that every search will hit the filesystem
# at the time it is requested.
#
# Refresh the cache every 5 minutes
# refresh_offset = 0
# refresh_interval = 300
# Don't cache filenames
# refresh_offset = -1
# refresh_interval = -1
# Refresh the cache once a day at 3am
refresh_offset = 10800
refresh_interval = 86400
[extra]
# Extra options
#
# You don't need to change this, but maybe you need more output or want to enable some special features
# Set this to 1 to get more output
debug_level = 0
# Mark all files as new if they are newer than days_new
days_new = 30
# List each file or directory you wish to hide from the edna pages
#hide_names = exactDirNames, exactSongNames
# List strings which you wish to hide in edna pages
# For example, "and" will not show entries such as "Band - Song"
#hide_matching = bandNames, songNames, badWords