auto/share/dist/App-MFILE-WWW/config/WWW_Config.pm untested

filter: Statementstmt 0.0% 0 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 30 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 # *************************************************************************
2 # Copyright (c) 2014-2017, SUSE LLC
3 #
4 # All rights reserved.
5 #
6 # Redistribution and use in source and binary forms, with or without
7 # modification, are permitted provided that the following conditions are met:
8 #
9 # 1. Redistributions of source code must retain the above copyright notice,
10 # this list of conditions and the following disclaimer.
11 #
12 # 2. Redistributions in binary form must reproduce the above copyright
13 # notice, this list of conditions and the following disclaimer in the
14 # documentation and/or other materials provided with the distribution.
15 #
16 # 3. Neither the name of SUSE LLC nor the names of its contributors may be
17 # used to endorse or promote products derived from this software without
18 # specific prior written permission.
19 #
20 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
24 # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 # POSSIBILITY OF SUCH DAMAGE.
31 # *************************************************************************
32 #
33 # share/config/WWW_Config.pm
34 #
35 # Main configuration file
36 #
37  
38 # MFILE_APPNAME
39 # the name of this web front-end (no colons; must match the directory
40 # name where application-specific JavaScript files are stored - e.g.
41 # share/js/mfile-www)
42 set( 'MFILE_APPNAME', 'mfile-www' );
43  
44 # MFILE_WWW_DEBUG_MODE
45 # turn debug-level log messages on and off
46 set( 'MFILE_WWW_DEBUG_MODE', 1 );
47  
48 # MFILE_WWW_HOST
49 # hostname/IP address where WWW server will listen
50 set( 'MFILE_WWW_HOST', 'localhost' );
51  
52 # MFILE_WWW_PORT
53 # port number where WWW server will listen
54 set( 'MFILE_WWW_PORT', 5001 );
55  
56 # MFILE_WWW_LOG_FILE
57 # full path of logfile
58 set( 'MFILE_WWW_LOG_FILE', $ENV{'HOME'} . "/.mfile-www.log" );
59  
60 # MFILE_WWW_LOG_FILE_RESET
61 # should the logfile be deleted/wiped/unlinked/reset before each use
62 set( 'MFILE_WWW_LOG_FILE_RESET', 1 );
63  
64 # MFILE_URI_MAX_LENGTH
65 # see lib/App/MFILE/WWW/Resource.pm
66 set( 'MFILE_URI_MAX_LENGTH', 1000 );
67  
68 # MFILE_WWW_BYPASS_LOGIN_DIALOG
69 # bypass the login dialog and use default login credentials (see next
70 # param)
71 set( 'MFILE_WWW_BYPASS_LOGIN_DIALOG', 1 );
72  
73 # MFILE_WWW_DEFAULT_LOGIN_CREDENTIALS
74 # when bypassing login dialog, use these credentials
75 set( 'MFILE_WWW_DEFAULT_LOGIN_CREDENTIALS', {
76 'nam' => 'root',
77 'pwd' => 'root'
78 } );
79  
80 # MFILE_WWW_STANDALONE_CREDENTIALS_DATABASE
81 set( 'MFILE_WWW_STANDALONE_CREDENTIALS_DATABASE', [
82 {
83 'nam' => 'root',
84 'pwd' => 'root',
85 'eid' => 1,
86 'priv' => 'admin',
87 },
88 {
89 'nam' => 'demo',
90 'pwd' => 'demo',
91 'eid' => 2,
92 'priv' => 'passerby',
93 },
94 ] );
95  
96 # MFILE_WWW_LOGIN_DIALOG_CHALLENGE_TEXT
97 # text displayed in the login dialog
98 set( 'MFILE_WWW_LOGIN_DIALOG_CHALLENGE_TEXT', 'Enter your Innerweb credentials, or demo/demo' );
99  
100 # MFILE_WWW_LOGIN_DIALOG_MAXLENGTH_USERNAME
101 # see share/comp/auth.mi
102 set( 'MFILE_WWW_LOGIN_DIALOG_MAXLENGTH_USERNAME', 20 );
103  
104 # MFILE_WWW_LOGIN_DIALOG_MAXLENGTH_PASSWORD
105 # see share/comp/auth.mi
106 set( 'MFILE_WWW_LOGIN_DIALOG_MAXLENGTH_PASSWORD', 40 );
107  
108 # MFILE_WWW_SESSION_EXPIRATION_TIME
109 # number of seconds after which a session will be considered stale
110 set( 'MFILE_WWW_SESSION_EXPIRATION_TIME', 3600 );
111  
112 # MFILE_WWW_LOGOUT_MESSAGE
113 # message that will be displayed for 1 second upon logout
114 set( 'MFILE_WWW_LOGOUT_MESSAGE', '<br><br><br><br>App::MFILE::WWW over and out.<br><br>Have a lot of fun.<br><br><br><br>' );
115  
116 # MFILE_WWW_DISPLAY_SESSION_DATA
117 # controls whether session data will be displayed on all screens
118 set( 'MFILE_WWW_DISPLAY_SESSION_DATA', 0 );
119  
120 # JAVASCRIPT (REQUIREJS)
121 # we use RequireJS to bring in dependencies - the following configuration
122 # parameters are required to bring in RequireJS
123 set( 'MFILE_WWW_JS_REQUIREJS', '/js/core/require.js' );
124 set( 'MFILE_WWW_REQUIREJS_BASEURL', '/js/core' );
125  
126 # -----------------------------------
127 # DO NOT EDIT ANYTHING BELOW THIS LINE
128 # -----------------------------------
129 use strict;
130 use warnings;
131  
132 1;