-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.default.php
More file actions
87 lines (61 loc) · 1.57 KB
/
config.default.php
File metadata and controls
87 lines (61 loc) · 1.57 KB
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
/*
* Database
*/
// Database type
// Native support: mysql
define('DATABASE', 'mysql');
// Database credentials
define('DB_HOST', 'db');
define('DB_NAME', 'onmyshelf');
define('DB_USER', 'onmyshelf');
define('DB_PASSWORD', 'onmyshelf');
/*
* API access
*/
// API URL
// You can put relative paths (e.g. /api) or complete URL (e.g. https://myapi.com/api)
// DO NOT PUT A "/" AT THE END OF THE PATH!
// Leave empty to put the API at your domain root.
define('API_URL', '/api/v1');
/*
* Media library
*/
// Storage type
define('STORAGE', 'local');
// Directoy path of the media library
// Default: ../../media (starts from /api/v1)
define('MEDIA_DIR', '../../media');
// Public URL of the media library
// You can put relative paths (e.g. /media) or complete URL (e.g. https://myapi.com/media)
// DO NOT PUT A "/" AT THE END OF THE PATH!
define('MEDIA_URL', '/media');
/*
* Email configuration (optional)
*/
// Email address from
define('EMAIL_FROM', '');
// SMTP server
define('SMTP_SERVER', '');
// SMTP port
define('SMTP_PORT', '465');
// SMTP user
define('SMTP_USER', '');
// SMTP password
define('SMTP_PASSWORD', '');
/*
* Advanced configuration
*/
// OnMyShelf public URL (optionnal)
define('OMS_URL', '');
// Token retention time (in minutes)
define('TOKEN_LIFETIME', 43200);
// Path of the log file
define('LOGFILE', 'onmyshelf.log');
// Set log level
define('LOGGER_LEVEL', 'INFO');
// Dev mode: enable cross-origin requests
define('DEV_MODE', false);
// Read only mode: disable every API write calls
// Used for demo instances
define('READ_ONLY', false);