-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.sample.php
87 lines (66 loc) · 2.83 KB
/
config.sample.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
/**
* Configure Your Own Browser interaction. The default (commented out)
* works for our docker system. This is an example configuration file.
* The contents are commented out.
*
* Either define a new config.php file at the root of the repository,
* or provide the path to a configuration file as
* define('FM_CONFIG', [...path to the configuration file...]);
*
*
*
* CONFIGURATION DYNAMIC
* leave out anything you don't want to override
*
//Default Image Server Preview URL Maker (for tif pyramid previews)
//Default Image Server Preview URL Maker (for tif pyramid previews)
$image_preview_url_maker = function ($file) {
return "http://localhost:8080/iipsrv.fcgi?Deepzoom={$file}_files/0/0_0.jpg";
};
//Array of folders excluded from listing
$GLOBALS['exclude_folders'] = array(
'.git'
);
*
* CONFIGURATION VIA CONSTANTS
* leave out anything you don't want to override
*
//Url of the Viewer
define('FM_XOPAT_URL', "http://localhost:8080/xopat/index.php");
// Default language
define('FM_LANG', 'en');
// Auth with login/password (set true/false to enable/disable it)
define('FM_USE_AUTH', true);
// Show or hide files and folders that starts with a dot
define('FM_SHOW_HIDDEN_FILES', false);
// Default timezone for date() and time() - http://php.net/manual/en/timezones.php
define('FM_DEFAULT_TIMEZONE', 'Europe/Prague'); // UTC
// Root path for file manager
define('FM_BROWSE_ROOT', '/var/www/data/');
// Default root for the WSI server
//todo unused
define('FM_IMAGE_SERVER_URL_PATH', FM_BROWSE_ROOT);
// Root url for links in file manager.Relative to FM_HTTP_HOST. Variants: '', 'path/to/subfolder'
// Will not working if $root_path will be outside of server document root
//if front end path and root path differ use a proxy link that will
//translate one url to the other (e.g. using htaccess at SERVER/proxy) and
//files directory with htaccess redirect from front end to root path
// example: RewriteRule $path/to/proxy/(.*)^ /real/absolute/server/url/$1 [L, QSA]
define('FM_HTTP_PATH', FM_BROWSE_ROOT);
// Root url for the source files, by default relative, the domain is appended automatically (JS, assets)
define('FM_URL', PATH_TO_IS_MANAGER || '');
define('FM_HTTP_HOST', $_SERVER['HTTP_HOST']);
// input encoding for iconv
define('FM_ICONV_INPUT_ENC', 'UTF-8');
// date() format for file modification date
define('FM_DATETIME_FORMAT', 'd.m.y H:i');
// allowed upload file extensions, e.g. 'gif,png,jpg'
define('FM_EXTENSION', '');
//Path to the analysis enpoint, set as false if you don't know
define('FM_WSI_ANALYSIS_PAGE', "http://localhost:8081/importer/server/analysis.php");
//Relative or absolute path to the viewer source src folder. Only required for shader configurator.
define('FM_XOPAT_SOURCES', 'http://localhost:8080/xopat/user_setup.php');
// Path to the database repository root
define('XO_DB_ROOT', "../xo_db/");
*/