Subversion Repositories oidplus

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
261 daniel-mar 1
 
2
OVERVIEW OF ALL CONFIG.INC.PHP SETTINGS
3
=======================================
4
 
5
The file includes/config.inc.php contains various settings
6
which are essential to connect to your database and other
7
things that should be known before the database connection
8
is opened.
9
 
10
Note that other settings are stored in the database (table "config")
11
and can be accessed using the admin login area.
12
 
13
 
14
-------------------------------------
15
(1) CONFIG SETTINGS PROVIDED BY SETUP
16
-------------------------------------
17
 
18
OIDplus::baseConfig()->setValue('CONFIG_VERSION',           2.1);
19
Old 2.0 format:          define('OIDPLUS_CONFIG_VERSION',   2.0);
20
 
21
OIDplus::baseConfig()->setValue('ADMIN_PASSWORD',           '<base64 encoded SHA3-512 hash>');
22
Old 2.0 format:          define('OIDPLUS_ADMIN_PASSWORD',   '<base64 encoded SHA3-512 hash>');
23
 
24
OIDplus::baseConfig()->setValue('DATABASE_PLUGIN',          '');
25
Old 2.0 format:          define('OIDPLUS_DATABASE_PLUGIN',  '');
26
 
27
OIDplus::baseConfig()->setValue('ODBC_DSN',                 'DRIVER={SQL Server};SERVER=localhost;DATABASE=oidplus;CHARSET=UTF8');
28
Old 2.0 format:          define('OIDPLUS_ODBC_DSN',         'DRIVER={SQL Server};SERVER=localhost;DATABASE=oidplus;CHARSET=UTF8');
29
 
30
OIDplus::baseConfig()->setValue('ODBC_USERNAME',            'sa');
31
Old 2.0 format:          define('OIDPLUS_ODBC_USERNAME',    'sa');
32
 
33
OIDplus::baseConfig()->setValue('ODBC_PASSWORD',            base64_decode('<base64_encoded_password>')); // alternatively as plaintext
34
Old 2.0 format:          define('OIDPLUS_ODBC_PASSWORD',    '<base64_encoded_password>'); // must be base64 encoded
35
Information:             The base64 encoding "protects" your password from being read if
36
                         someone quickly looks at your display while you have the configuration file opened.
37
 
38
OIDplus::baseConfig()->setValue('PDO_DSN',                  'pgsql:host=localhost;dbname=oidplus');
39
Old 2.0 format:          define('OIDPLUS_PDO_DSN',          'pgsql:host=localhost;dbname=oidplus');
40
 
41
OIDplus::baseConfig()->setValue('PDO_USERNAME',             'postgres');
42
Old 2.0 format:          define('OIDPLUS_PDO_USERNAME',     'postgres');
43
 
44
OIDplus::baseConfig()->setValue('PDO_PASSWORD',             base64_decode('<base64_encoded_password>')); // alternatively as plaintext
45
Old 2.0 format:          define('OIDPLUS_PDO_PASSWORD',     '<base64_encoded_password>'); // must be base64 encoded
46
Information:             The base64 encoding "protects" your password from being read if
47
                         someone quickly looks at your display while you have the configuration file opened.
48
 
49
OIDplus::baseConfig()->setValue('MYSQL_HOST',               'localhost:3306');
50
Old 2.0 format:          define('OIDPLUS_MYSQL_HOST',       'localhost:3306');
51
Information:             Port is optional
52
 
53
OIDplus::baseConfig()->setValue('MYSQL_USERNAME',           'root');
54
Old 2.0 format:          define('OIDPLUS_MYSQL_USERNAME',   'root');
55
 
56
OIDplus::baseConfig()->setValue('MYSQL_PASSWORD',           base64_decode('<base64_encoded_password>')); // alternatively as plaintext
57
Old 2.0 format:          define('OIDPLUS_MYSQL_PASSWORD',   '<base64_encoded_password>'); // must be base64 encoded
58
Information:             The base64 encoding "protects" your password from being read if
59
                         someone quickly looks at your display while you have the configuration file opened.
60
 
61
OIDplus::baseConfig()->setValue('MYSQL_DATABASE',           'oidplus');
62
Old 2.0 format:          define('OIDPLUS_MYSQL_DATABASE',   'oidplus');
63
 
64
OIDplus::baseConfig()->setValue('PGSQL_HOST',               'localhost:5432');
65
Old 2.0 format:          define('OIDPLUS_PGSQL_HOST',       'localhost:5432');
66
Information:             Port is optional
67
 
68
OIDplus::baseConfig()->setValue('PGSQL_USERNAME',           'postgres');
69
Old 2.0 format:          define('OIDPLUS_PGSQL_USERNAME',   'postgres');
70
 
71
OIDplus::baseConfig()->setValue('PGSQL_PASSWORD',           base64_decode('<base64_encoded_password>')); // alternatively as plaintext
72
Old 2.0 format:          define('OIDPLUS_PGSQL_PASSWORD',   '<base64_encoded_password>'); // must be base64 encoded
73
Information:             The base64 encoding "protects" your password from being read if
74
                         someone quickly looks at your display while you have the configuration file opened.
75
 
76
OIDplus::baseConfig()->setValue('PGSQL_DATABASE',           'oidplus');
77
Old 2.0 format:          define('OIDPLUS_PGSQL_DATABASE',   'oidplus');
78
 
79
OIDplus::baseConfig()->setValue('TABLENAME_PREFIX',         'oidplus_');
80
Old 2.0 format:          define('OIDPLUS_TABLENAME_PREFIX', 'oidplus_');
81
 
82
OIDplus::baseConfig()->setValue('SERVER_SECRET',            'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
83
Old 2.0 format:          define('OIDPLUS_SESSION_SECRET',   'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
84
Information:             It is very very important that you choose a long sequence of
85
                         random characters. OIDplus uses this secret for various
86
                         security related purposes. If someone accidently received this secret,
87
                         please change the sequence.
88
 
89
OIDplus::baseConfig()->setValue('RECAPTCHA_ENABLED',        true);
90
Old 2.0 format:          define('RECAPTCHA_ENABLED',        0);
91
 
92
OIDplus::baseConfig()->setValue('RECAPTCHA_PUBLIC',         '');
93
Old 2.0 format:          define('RECAPTCHA_PUBLIC',         '');
94
 
95
OIDplus::baseConfig()->setValue('RECAPTCHA_PRIVATE',        '');
96
Old 2.0 format:          define('RECAPTCHA_PRIVATE',        '');
97
 
98
OIDplus::baseConfig()->setValue('ENFORCE_SSL',              2);
99
Old 2.0 format:          define('OIDPLUS_ENFORCE_SSL',      2);
100
Information:             Values 0 (off), 1 (on), 2 (auto detect)
101
 
102
 
103
----------------------
104
(2) SYSTEM LIMITATIONS (defined and documented in includes/limits.inc.php , can be overwritten by config.inc.php)
105
----------------------
106
 
107
OIDplus::baseConfig()->setValue('LIMITS_MAX_OID_DEPTH',  30);
108
Old 2.0 format:          define('OIDPLUS_MAX_OID_DEPTH', 30);
109
Information:             Please read the documentation in the file includes/limits.inc.php
110
 
111
OIDplus::baseConfig()->setValue('LIMITS_MAX_ID_LENGTH',     255);
112
Old 2.0 format:          define('OIDPLUS_MAX_OID_ARC_SIZE', 255);
113
Information:             Please read the documentation in the file includes/limits.inc.php
114
 
115
OIDplus::baseConfig()->setValue('LIMITS_MAX_OID_ARC_SIZE',  50);
116
Old 2.0 format:          define('OIDPLUS_MAX_OID_ARC_SIZE', 50);
117
Information:             Please read the documentation in the file includes/limits.inc.php
118
 
119
OIDplus::baseConfig()->setValue('LIMITS_MAX_OID_ASN1_ID_LEN',  255);
120
Old 2.0 format:          define('OIDPLUS_MAX_OID_ASN1_ID_LEN', 255);
121
Information:             Please read the documentation in the file includes/limits.inc.php
122
 
123
OIDplus::baseConfig()->setValue('LIMITS_MAX_OID_UNICODE_LABEL_LEN',  255);
124
Old 2.0 format:          define('OIDPLUS_MAX_OID_UNICODE_LABEL_LEN', 255);
125
Information:             Please read the documentation in the file includes/limits.inc.php
126
 
127
 
128
-----------------------------------------
129
(3) "HIDDEN"/UNDOCUMENTED CONFIG SETTINGS
130
-----------------------------------------
131
 
132
OIDplus::baseConfig()->setValue('OIDINFO_SECRET_ADMIN_USERNAME', '<email address>');
133
Old 2.0 format:          define('OIDINFO_SECRET_ADMIN_USERNAME', '<email address>');
134
Information:             Currently only internal use for development utilities (dev/).
135
 
136
OIDplus::baseConfig()->setValue('OIDINFO_SECRET_ADMIN_PASSWORD', '<plaintext password>');
137
Old 2.0 format:          define('OIDINFO_SECRET_ADMIN_PASSWORD', '<plaintext password>');
138
Information:             Currently only internal use for development utilities (dev/).
139
 
140
OIDplus::baseConfig()->setValue('OIDINFO_API_URL', '<url>');
141
Old 2.0 format:          define('OIDINFO_API_URL', '<url>');
142
Information:             Currently only internal use for development utilities (dev/).
143
 
144
OIDplus::baseConfig()->setValue('REGISTRATION_HIDE_SYSTEM', true);
145
Old 2.0 format:          define('REGISTRATION_HIDE_SYSTEM', true);
146
Information:             Set this if you have a clone of a productive system and you want
147
                         to avoid that the clone registers at the ViaThinkSoft directory
148
                         (which would overwrite the URL of the productive system and reveal
149
                         the URL of your testing system)
150
 
151
OIDplus::baseConfig()->setValue('MYSQL_FORCE_MYSQLND_SUPPLEMENT',         false);
152
Old 2.0 format:          define('OIDPLUS_MYSQL_FORCE_MYSQLND_SUPPLEMENT', false);
153
Information:             The MySQLi plugin contains a supplement code to handle
154
                         prepared statements on servers which do not have the MySQLnd extension
155
                         installed. Set this flag to force the supplement to be used,
156
                         even if MySQLnd is available. (For testing purposes only)
157
 
158
OIDplus::baseConfig()->setValue('QUERY_LOGFILE',          '');
159
Old 2.0 format:          define('OIDPLUS_MYSQL_QUERYLOG', false);
160
Information:             Set this setting to a filename where all queries including timestamps would be written.
161
                         This is used for performance analysis.
162
                         Please choose a directory that cannot be accessed by world-wide.
163
 
164
OIDplus::baseConfig()->setValue('SESSION_LIFETIME', 30*60);
165
Old 2.0 format:          define('SESSION_LIFETIME', 30*60);
166
Information:             Session lifetime in seconds.
167
 
168
OIDplus::baseConfig()->setValue('OBJECT_CACHING',         true);
169
Old 2.0 format:          define('OIDPLUS_OBJECT_CACHING', true);
170
 
171
OIDplus::baseConfig()->setValue('FORCE_DBMS_SLANG', '');
172
Old 2.0 format:          define('DBMS_SLANG',       '');
173
Information:             Currently valid values: mysql, mssql, pgsql
174
 
175
OIDplus::baseConfig()->setValue('MINIFY_CSS', true);
176
Old 2.0 format:          define('DO_MINIFY',  true);
177
 
178
OIDplus::baseConfig()->setValue('MINIFY_JS',  true);
179
Old 2.0 format:          (Not available)
180
 
181
OIDplus::baseConfig()->setValue('DISABLE_MSIE_COMPAT', false);
182
Old 2.0 format:          define('DISABLE_MSIE_COMPAT', false);
183
Information:             Set to "true" if you want to avoid that the external polyfill
184
                         JavaScript will be included if Internet Explorer is detected.
185
                         Only recommended if you have concerns about privacy.