1 section "General options"
2 #~~~~~~~~~~~~~~~~~~~~~~~~
18 int typestr="portnumber"
25 "run as background daemon"
32 "run as user 'name'. para_server does not
33 need any special privileges. If started as
34 root (EUID == 0) this option must be given at
35 the command line (not in the configuration
36 file) so that para_server can drop the root
37 privileges right after parsing the command
38 line options, but before parsing the
39 configuration file. In this case,
40 real/effective/saved UID are all set to the
41 UID of 'username'. As the configuration file
42 is read afterwards, those options that have a
43 default value depending on the UID (e.g. the
44 directory for the configuration file) are
45 computed by using the uid of 'username'.
46 This option has no effect if para_server is
47 started as a non-root user (i.e. EUID != 0)"
56 "set group id to according to 'group'. This
57 option is silently ignored if EUID != 0.
58 Otherwise, real/effective GID and the saved
59 set-group ID are all set to the GID given by
60 'group'. Must not be given in the config file."
62 string typestr="groupname"
67 section "Configuration files"
68 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~
74 "(default=stdout/stderr)"
76 string typestr="filename"
79 option "config_file" c
80 #~~~~~~~~~~~~~~~~~~~~~
82 "(default='~/.paraslash/server.conf'"
84 string typestr="filename"
90 "(default='~/.paraslash/server.users')"
92 string typestr="filename"
97 section "virtual streaming system"
98 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
104 "start playing on startup"
108 option "autoplay_delay" -
109 #~~~~~~~~~~~~~~~~~~~~~~~~
110 "Time to wait before autoplay starts. Ignored if
112 int typestr="milliseconds"
117 option "announce_time" A
118 #~~~~~~~~~~~~~~~~~~~~~~~
120 "Delay betweeen announcing the stream and sending data"
122 int typestr="milliseconds"
132 string typestr="name"
137 section "mysql selector:"
138 #~~~~~~~~~~~~~~~~~~~~~~~~
141 option "mysql_host" -
142 #~~~~~~~~~~~~~~~~~~~~
146 string typestr="ip or hostname"
150 option "mysql_port" -
151 #~~~~~~~~~~~~~~~~~~~~
153 "where mysql is listening"
155 int typestr="portnumber"
160 option "mysql_user" -
161 #~~~~~~~~~~~~~~~~~~~~
163 "default value: username from /etc/passwd"
165 string typestr="username"
168 option "mysql_passwd" -
169 #~~~~~~~~~~~~~~~~~~~~~~
176 option "mysql_database" -
177 #~~~~~~~~~~~~~~~~~~~~~~~~
179 "name of mysql database"
185 option "mysql_audio_file_dir" -
186 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
188 "dir to search for audio files (required)"
190 string typestr="dirname"
193 option "mysql_default_score" -
194 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
196 "scoring rule to use if stream definition
197 does not contain explicit score definition"
200 default="(LASTPLAYED() / 1440 - 1000 / (LASTPLAYED() + 1) - sqrt(NUMPLAYED()))"
206 section "random selector"
207 #~~~~~~~~~~~~~~~~~~~~~~~~
210 option "random_dir" -
211 #~~~~~~~~~~~~~~~~~~~~
213 "dir to search for audio files"
214 string typestr="dirname"
215 default="/home/music"
221 section "http sender"
222 #~~~~~~~~~~~~~~~~~~~~
228 "tcp port for http streaming"
230 int typestr="portnumber"
234 option "http_default_deny" -
235 #~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 "deny connections from hosts which are not
242 option "http_access" -
243 #~~~~~~~~~~~~~~~~~~~~~
245 "Add given host/network to access control
246 list (whitelist if http_default_deny was
247 given, blacklist otherwise) before opening
248 the tcp port. This option can be given
249 multiple times. Example: '192.168.0.0/24'
250 whitelists/blacklists the 256 hosts
253 string typestr="a.b.c.d/n"
257 option "http_no_autostart" -
258 #~~~~~~~~~~~~~~~~~~~~~~~~~~~
260 "do not open tcp port on server startup"
264 option "http_max_clients" -
265 #~~~~~~~~~~~~~~~~~~~~~~~~~~
267 "maximal simultaneous connections,
268 non-positive value means unlimited"
277 section "dccp sender"
278 #~~~~~~~~~~~~~~~~~~~~
284 "port for dccp streaming"
286 int typestr="portnumber"
293 section "ortp sender"
294 #~~~~~~~~~~~~~~~~~~~~
296 option "ortp_target" -
297 #~~~~~~~~~~~~~~~~~~~~~
299 "Add given host/port to the list of targets.
300 This option can be given multiple times.
301 Example: '224.0.1.38:1500' instructs the ortp
302 sender to send to udp port 1500 on host
303 224.0.1.38 (unassigned ip in the Local
304 Network Control Block 224.0.0/24). This is
305 useful for LAN-streaming."
307 string typestr="a.b.c.d:p"
311 option "ortp_no_autostart" -
312 #~~~~~~~~~~~~~~~~~~~~~~~~~~~
314 "do not start to send automatically"
318 option "ortp_default_port" -
319 #~~~~~~~~~~~~~~~~~~~~~~~~~~~
321 "default udp port if not specified"
323 int typestr="portnumber"
327 option "ortp_header_interval" H
328 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
330 "time between extra header sends"
332 int typestr="milliseconds"
336 option "ortp_jitter_compensation" j
337 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
339 "non-zero values enable ortp's adaptive
342 int typestr="milliseconds"