source: ipk/source.sh4/network_xupnpd/_path_/etc/xupnpd/xupnpd.lua

Last change on this file was 36028, checked in by Stephan, 10 years ago

[xupnpd] another config change and new bouquet2m3u, thanks to ago123

File size: 3.3 KB
Line 
1cfg={}
2
3-- multicast interface for SSDP exchange, 'eth0', 'br0', 'br-lan' for example
4cfg.ssdp_interface='any'
5
6-- 'cfg.ssdp_loop' enables multicast loop (if player and server in one host)
7cfg.ssdp_loop=0
8
9-- SSDP announcement interval
10cfg.ssdp_notify_interval=15
11
12-- SSDP announcement age
13cfg.ssdp_max_age=1800
14
15-- HTTP port for incoming connections
16cfg.http_port=4044
17
18-- syslog facility (syslog,local0-local7)
19cfg.log_facility='local0'
20
21-- 'cfg.daemon' detach server from terminal
22cfg.daemon=true
23
24-- silent mode - no logs, no pid file
25cfg.embedded=true
26
27-- 'cfg.debug' enables SSDP debug output to stdout (if cfg.daemon=false)
28-- 0-off, 1-basic, 2-messages
29cfg.debug=0
30
31-- external 'udpxy' url for multicast playlists (udp://@...)
32--cfg.udpxy_url='http://192.168.1.1:4022'
33
34-- downstream interface for builtin multicast proxy (comment 'cfg.udpxy_url' for processing 'udp://@...' playlists)
35cfg.mcast_interface='eth0'
36
37-- 'cfg.proxy' enables proxy for injection DLNA headers to stream
38-- 0-off, 1-radio, 2-radio/TV
39cfg.proxy=0
40
41-- User-Agent for proxy
42cfg.user_agent='Mozilla/5.0'
43
44-- I/O timeout
45cfg.http_timeout=30
46
47-- enables UPnP/DLNA notify when reload playlist
48cfg.dlna_notify=true
49
50-- UPnP/DLNA subscribe ttl
51cfg.dlna_subscribe_ttl=1800
52
53-- group by 'group-title'
54cfg.group=true
55
56-- sort files
57cfg.sort_files=true
58
59-- Device name
60cfg.name=io.popen("uname -n"):read("*l")..'-xupnpd'
61
62-- static device UUID, '60bd2fb3-dabe-cb14-c766-0e319b54c29a' for example or nil
63cfg.uuid=''
64
65-- max url cache size
66cfg.cache_size=8
67
68-- url cache item ttl (sec)
69cfg.cache_ttl=900
70
71-- default mime type (mpeg, mpeg_ts, mpeg1, mpeg2, ts, ...)
72cfg.default_mime_type='mpeg_ts'
73
74-- feeds update interval (seconds, 0 - disabled)
75cfg.feeds_update_interval=3600
76cfg.playlists_update_interval=60
77
78-- playlist (m3u file path or path with alias
79playlist=
80{
81-- { './playlists/mozhay.m3u', 'Mozhay.tv' },
82-- { './localmedia', 'Local Media Files' }
83-- { './private', 'Private Media Files', '127.0.0.1;192.168.1.1' } -- only for 127.0.0.1 and 192.168.1.1
84-- { '/media/hdd/movie', 'Aufnahmen' }
85}
86
87-- feeds list (plugin, feed name, feed type)
88feeds=
89{
90 { 'vimeo', 'channel/hd', 'Vimeo HD Channel' },
91 { 'vimeo', 'channel/hdxs', 'Vimeo Xtreme sports' },
92 { 'vimeo', 'channel/mtb', 'Vimeo MTB Channel' },
93-- { 'youtube', 'channel/top_rated', 'YouTube Top Rated' },
94-- { 'youtube', 'Drift0r', 'Drift0r' },
95-- { 'youtube', 'XboxAhoy', 'XboxAhoy' },
96-- { 'ag', 'videos', 'AG - New' },
97-- { 'ivi', 'new', 'IVI - New' },
98-- { 'gametrailers', 'ps3', 'GT - PS3' },
99-- { 'giantbomb', 'all', 'GiantBomb - All' },
100-- { 'dreambox', 'http://192.168.0.1:8001/','Dreambox1' },
101}
102
103-- log ident, pid file end www root
104cfg.version='1.033'
105cfg.log_ident=arg[1] or 'xupnpd'
106cfg.pid_file='/var/run/'..cfg.log_ident..'.pid'
107cfg.www_root='./www/'
108cfg.tmp_path='/tmp/'
109cfg.plugin_path='./plugins/'
110cfg.config_path='./config/'
111cfg.playlists_path='./playlists/'
112--cfg.feeds_path='/tmp/xupnpd-feeds/'
113cfg.ui_path='./ui/'
114cfg.drive='' -- reload playlists only if drive state=active/idle, example: cfg.drive='/dev/sda'
115cfg.profiles='./profiles/' -- device profiles feature
116
117dofile('xupnpd_main.lua')
Note: See TracBrowser for help on using the repository browser.