juci-minidlna: remove db_dir option because its use is removed due to security issue...
[juci.git] / plugins / juci-minidlna / src / pages / internet-services-minidlna.html
1 <juci-layout-with-sidebar>
2         <div ng-controller="MiniDLNAConfigPage">
3                 <h2 translate>MiniDLNA</h2>
4                 <p translate>MiniDLNA is server software with the aim of being fully compliant with DLNA/UPnP-AV clients.</p>
5                 <juci-config-lines>
6                         <juci-config-line title="{{'Enable'|translate}}">
7                                 <switch ng-model="config.enabled.value" class="green"/>
8                         </juci-config-line>
9                 </juci-config-lines>
10                 <accordion close-others="false" ng-show="config.enabled.value">
11                         <accordion-group is-open="isopen">
12                                 <accordion-heading> Status <i class="fa fa-chevron-circle-{{isopen ? 'down' : 'right'}}"></i></accordion-heading>
13                                 <div>
14                                         <iframe src="{{iframeURL}}" style="width:100%; height:470px" frameBorder="0" id="iframe">
15                                                   <p>Your browser does not support iframes.</p>
16                                         </iframe>
17                                 </div>
18                         </accordion-group>
19                 </accordion>
20                 <!--
21                 <div ng-show="config.enabled.value && !error && count.audio > -1 && count.video > -1 && count.image > -1" class="alert alert-info" translate>
22                                         The miniDLNA service is {{ is_running || 'unknown' }}, serving {{ (count.audio != undefined) ? count.audio :  'unknown' }} audio,
23                                         {{ (count.video != undefined) ? count.video : 'unknown' }} video and 
24                                         {{ (count.image != undefined) ?  count.image : 'unknown' }} image files.
25                 </div>
26                 <div ng-show="config.enabled.value && error" class="alert alert-info" translate>
27                         {{error}}
28                 </div>
29                 -->
30                 <tabset>
31                         <tab heading="{{ 'General' | translate }}">
32                                 <juci-config-lines>
33                                         <juci-config-line title="{{'Port'|translate}}" help="{{ 'Port for HTTP (descriptions, SOAP, media transfer) traffic.' | translate }}">
34                                                 <input type="number" class="form-control" min="0" max="65535" ng-model="port.value"/>
35                                         </juci-config-line>
36                                         <juci-config-line title="{{'Network'|translate}}" help="{{ 'Network interfaces to serve.' | translate }}">
37                                                 <dropdown-multi-select input-model="network.all" output-model="network.selected" 
38                                                         button-label="name" item-label="name" tick-property="selected"></dropdown-multi-select> 
39                                         </juci-config-line>
40                                         <juci-config-line title="{{'Friendly Name'|translate}}" help="{{ 'Set this if you want to customize the name that shows up on your clients.' | translate }}">
41                                                 <input type="text" class="form-control" ng-model="config.friendly_name.value"/>
42                                         </juci-config-line>
43                                         <juci-config-line title="{{'Root Container'|translate}}">
44                                                 <juci-select ng-items="root_dir" ng-model="config.root_container.value"></juci-select>
45                                         </juci-config-line>
46                                         <juci-config-line title="{{'Media Directories'|translate}}"></juci-config-line>
47                                         <div class="col-sm-12 col-xs-12">
48                                                 <div class="input-group">
49                                                         <span class="input-group-addon">/mnt</span>
50                                                         <tags-input ng-model="tagslistData" display-property="text"
51                                                                                 on-tag-added="onTagAdded($tag)" on-tag-removed="updateConfig()"
52                                                                                 add-from-autocomplete-only="true" min-length="0">
53                                                                                 <auto-complete source="loadTags($query)" min-length="0"></auto-complete>
54                                                         </tags-input>
55                                                 </div><br/>
56                                                 <button style="margin-bottom:15px;" class="btn btn-default pull-right" ng-click="onAddFolder()"><i class="fa fa-plus"></i></button>
57                                         </div>
58                                         <juci-config-line title="{{'Album-Art Names'|translate}}" help="{{ 'This is a list of file names to check for when searching for album art.' | translate }}">
59                                                 <tags-input ng-model="album_art" display-property="text" min-length="5"
60                                                         add-on-space="true" add-on-blur="false" on-tag-added="onChangeAAName($tag)"
61                                                         on-tag-removed="onChangeAAName($tag)" placeholder="{{'write list of album-art names' | translate}}">
62                                                 </tags-input>
63                                         </juci-config-line>
64                                 </juci-config-lines>
65                         </tab>
66                         <tab heading="{{ 'Advanced' | translate }}">
67                                 <juci-config-lines>
68                                         <!-- This is removed from JUCI because we have removed its affect in the system due to a security hole #14963. Add back when this hole is patched -->
69
70                                         <!-- <juci-config-line title="{{ 'Database directory' | translate }}" help="{{ 'Set this if you would like to specify the directory where you want -->
71                                         <!--            MiniDLNA to store       its database and album art cache.' | translate }}"> -->
72                                         <!--    <input type="text" class="form-control" ng-model="config.db_dir.value"/> -->
73                                         <!-- </juci-config-line> -->
74                                         <juci-config-line title="{{ 'Log directory' | translate }}" help="{{ 'Set this if you would like to specify the directory where you want MiniDLNA 
75                                                                         to store its log file.' | translate }}">
76                                                 <input type="text" class="form-control" ng-model="config.log_dir.value"/>
77                                         </juci-config-line>
78                                         <juci-config-line title="{{ 'Enable inotify' | translate }}"help="{{ 'Set this to enable inotify monitoring to automatically discover new files.' | translate }}">
79                                                 <switch class="green" ng-model="config.inotify.value"/>
80                                         </juci-config-line>
81                                         <juci-config-line title="{{ 'Enable TIVO' | translate }}" help="{{ 'Set this to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO.' | translate }}">
82                                                 <switch class="green" ng-model="config.enable_tivo.value"/>
83                                         </juci-config-line>
84                                         <juci-config-line title="{{ 'Strict to DLNA standard' | translate }}" help="{{ '        Set this to strictly adhere to DLNA standards. This will allow 
85                                                                         server-side downscaling of very large JPEG images, which may hurt JPEG serving performance on (at least) Sony DLNA products.' | translate }}">
86                                                 <switch class="green" ng-model="config.strict_dlna.value"/>
87                                         </juci-config-line>
88                                         <juci-config-line title="{{ 'Presentation URL' | translate }}">
89                                                 <input type="text" class="form-control" placeholder="http://192.168.1.1/" ng-model="config.presentation_url.value"/>
90                                         </juci-config-line>
91                                         <juci-config-line title="{{ 'Notify interval' | translate }}" help="{{ 'Notify interval in seconds.' | translate }}">
92                                                 <input type="number" class="form-control" ng-model="config.notify_interval.value"/>
93                                         </juci-config-line>
94                                         <juci-config-line title="{{ 'Announced serial number' | translate }}" info="{{ 'Serial number the miniDLNA daemon will report to clients in its XML description.' | translate }}">
95                                                 <input type="text" class="form-control" ng-model="config.serial.value"/>
96                                         </juci-config-line>
97                                         <juci-config-line title="{{ 'Announced model number' | translate }}" help="{{ 'Model number the miniDLNA daemon will report to clients in its XML description.' | translate }}">
98                                                 <input type="text" class="form-control" ng-model="config.model_number.value"/>
99                                         </juci-config-line>
100                                         <juci-config-line title="{{ 'miniSSDP socket' | translate }}" help="{{ 'Specify the path to the MiniSSDPd socket.' | translate }}">
101                                                 <input type="text" class="form-control" placeholder="/var/run/minissdpd.sock" ng-model="config.minissdpsocket.value"/>
102                                         </juci-config-line>
103                                 </juci-config-lines>
104                         </tab>
105                 </tabset>
106         </div>
107 </juci-layout-with-sidebar>