-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-dist.php
89 lines (73 loc) · 3.55 KB
/
config-dist.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
88
89
<?php
// Settings can also be overwritten:
//
// First priority:
// An environment variable with the same name as the setting and prefix "PIKSI_"
// so for example "PIKSI_BASE_URL"
//
// Second priority:
// The settings defined here below
// Either "production", "dev" or "demo"
Setting('MODE', 'production');
// The localization to use, must exist as a file "<locale>.po"
// in the /localization directory (e.g. "en" or "de")
Setting('LOCALE', 'en');
// When running in a subdirectory, this should be set to the relative path, otherwise empty
// It needs to be set to the part (of the URL) AFTER the document root,
// if URL rewriting is disabled, including index.php
// Example with URL Rewriting support:
// Root URL = https://example.com/piksi
// => BASE_PATH = /piksi
// Example without URL Rewriting support:
// Root URL = https://example.com/piksi/public/index.php/
// => BASE_PATH = /piksi/public/index.php
Setting('BASE_PATH', '');
// The base URL of your installation,
// should be just "/" when running directly under the root of a (sub)domain
// or for example "https://example.com/piksi" when using a subdirectory
Setting('BASE_URL', '/');
// If, however, your webserver does not support URL rewriting, set this to true
Setting('DISABLE_URL_REWRITING', false);
// The folders to show / scan for media files
// When only one folder is configured, the content of that folder will be directly shown on the root page, otherwise an overview of all configured folders
//
// For deviating sorting:
// When next to a folder a (text) file "<original folder name>.sort" exists, the content of this file is used for sorting instead of the folder name
//
// For displaying badges:
// When next to a folder (or file) a (text) file "<original folder/file name>.badge" exists, the content of this file be shown as a badge next to the folder/file title
Setting('FOLDERS', [
[
'name' => 'Folder1',
'path' => '/var/data/pictures/folder1',
'sort' => 'desc' // "asc" (ascending) or "desc" (descending), defaults to "asc" when omitted
],
[
'name' => 'Folder2',
'path' => '/var/data/pictures/folder2',
'show_filenames' => true, // Whether to show filenames or not, defaults to "SHOW_FILENAMES" (see below) when omitted
'badge_text' => '', // When provided and not empty, this text will be shown as a badge next to the title
'is_special' => true // When true, this folder will be hidden from the overview page and instead the content of it will be shown directly there (only makes sense when having more than one folder configured)
]
]);
// File extensions (without leading dot) of photos to show
// Leave empty to not show photos
Setting('PICTURE_FILEEXT', ['png', 'jpg']);
// File extensions (without leading dot) of videos to show
// Leave empty to not show videos
Setting('VIDEO_FILEEXT', ['mp4']);
// File extensions (without leading dot) of audios to show
// Leave empty to not show audios
Setting('AUDIO_FILEEXT', ['mp3']);
// When this file exists per album folder, it will be shown instead of the folder name
Setting('ALBUM_COVER_FILENAME', '__album.jpg');
// When in this subfolder (per album folder) a same named picture file exists,
// it is used as the thumbnail (only for pictures)
Setting('THUMBS_FOLDER_NAME', '__thumbs');
// Whether to play videos inline (=> true) or only in a lightbox (=> false)
Setting('PLAY_VIDEOS_INLINE', false);
// Whether to show filenames or not by default
// (this can also be set per folder, see above)
Setting('SHOW_FILENAMES', false);
// When this is set, this is used / shown as the application title (instead of "Piksi")
Setting('OVERWRITE_TITLE', '');