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

Last change on this file since 28892 was 28892, checked in by Stephan, 9 years ago

[xupnpd] allow mcast on any interface and random uuid

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=1
8
9-- SSDP announcement interval
10cfg.ssdp_notify_interval=5
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=1
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='any'
36
37-- 'cfg.proxy' enables proxy for injection DLNA headers to stream
38-- 0-off, 1-radio, 2-radio/TV
39cfg.proxy=2
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-- group by 'group-title'
51cfg.group=true
52
53-- sort files
54cfg.sort_files=true
55
56-- Device name
57--cfg.name='Titan UPnP-Server'
58cfg.name=io.popen("uname -n"):read("*l")..'-xupnpd'
59
60-- static device UUID, '60bd2fb3-dabe-cb14-c766-0e319b54c29a' for example or nil
61-- cfg.uuid='60bd2fb3-dabe-cb14-c766-0e319b54c29a'
62cfg.uuid=''
63
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'
73
74-- feeds update interval (seconds, 0 - disabled)
75cfg.feeds_update_interval=3600
76cfg.playlists_update_interval=0
77
78-- playlist (m3u file path or path with alias
79playlist=
80{
81--    { './playlists/mozhay.m3u', 'Mozhay.tv' },
82    { '/media/hdd/movie', 'Aufnahmen' }
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}
85
86-- feeds list (plugin, feed name, feed type)
87feeds=
88{
89--    { 'vimeo',          'channel/hd',           'Vimeo HD Channel' },
90--    { 'vimeo',          'channel/hdxs',         'Vimeo Xtreme sports' },
91--    { 'vimeo',          'channel/mtb',          'Vimeo MTB Channel' },
92--    { 'youtube',        'channel/top_rated',    'YouTube Top Rated' },
93--    { 'youtube',        'Drift0r',              'Drift0r' },
94--    { 'youtube',        'XboxAhoy',             'XboxAhoy' },
95--    { 'ag',             'videos',               'AG - New' },
96--    { 'ivi',            'new',                  'IVI - New' },
97--    { 'gametrailers',   'ps3',                   'GT - PS3' },
98--    { 'giantbomb',      'all',                  'GiantBomb - All' },
99--    { 'dreambox',       'http://192.168.0.1:8001/','Dreambox1' },
100}
101
102-- log ident, pid file end www root
103cfg.version='1.031'
104cfg.log_ident=arg[1] or 'xupnpd'
105cfg.pid_file='/var/run/'..cfg.log_ident..'.pid'
106cfg.www_root='./www/'
107cfg.tmp_path='/tmp/'
108cfg.plugin_path='./plugins/'
109cfg.config_path='./config/'
110cfg.playlists_path='./playlists/'
111--cfg.feeds_path='/tmp/xupnpd-feeds/'
112cfg.ui_path='./ui/'
113cfg.drive=''                    -- reload playlists only if drive state=active/idle, example: cfg.drive='/dev/sda'
114cfg.profiles='./profiles/'      -- device profiles feature
115
116dofile('xupnpd_main.lua')
Note: See TracBrowser for help on using the repository browser.