-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathconfig.dist.php
More file actions
160 lines (143 loc) · 3.67 KB
/
Copy pathconfig.dist.php
File metadata and controls
160 lines (143 loc) · 3.67 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<?php
/**
* This is an example config for oPodSync
* It should be copied to `config.local.php` and placed in the `server/data` directory.
*/
namespace OPodSync;
/**
* ENABLE_SUBSCRIPTIONS
* true = Open subscriptions to anyone
* false = Subscriptions are closed after the first account is created
*
* Default: false
* @var bool
*/
const ENABLE_SUBSCRIPTIONS = false;
/**
* TITLE
* This is used for the instance name
*
* Default: My oPodSync server
* @var string
*/
const TITLE = 'My oPodSync server';
/**
* BASE_URL
* Set to the URL where the server is hosted
*
* Default: detected automatically if not set (can fail in some cases)
* @var string
*/
//const BASE_URL = 'https://gpodder.mydomain.tld/me/';
/**
* DISABLE_USER_METADATA_UPDATE
* Set this to TRUE to forbid users from updating feed metadata,
* as this may add some load on your server
* (default is FALSE)
*
* @var bool
*/
const DISABLE_USER_METADATA_UPDATE = false;
/**
* KARADAV_URL
* Set to the URL of an external KaraDAV server if you want to use this oPodSync instance
* as an external app inside KaraDAV.
*
* If enabled, an account will be created in oPodSync for any KaraDAV user
* if they don't have one already.
*
* Don't forget the API key in the URL.
*
* Default: null (disabled)
* @var string|null
*/
//const KARADAV_URL = 'https://:abcd@karadav.example.org/';
/**
* DATA_ROOT
* Path of directory where data will be stored.
* ROOT is the root of oPodSync code.
*
* @var string
*/
const DATA_ROOT = ROOT . '/data';
/**
* CACHE_ROOT
* Path of directory where cache will be stored.
* ROOT is the root of oPodSync code.
*
* @var string
*/
const CACHE_ROOT = DATA_ROOT . '/cache';
/**
* DB_FILE
* SQLite3 database file
* This is where the users, app sessions and stuff will be stored
*/
const DB_FILE = DATA_ROOT . '/data.sqlite';
/**
* SQLITE_JOURNAL_MODE
* SQLite3 journaling mode
* Default: TRUNCATE (slower, but safer)
* Recommended: WAL (faster, but read below)
*
* If your database file is on a local disk, you will get better performance by using
* 'WAL' journaling instead. But it is not enabled by default as it may
* lead to database corruption on some network storage (eg. old NFS).
*
* @see https://www.sqlite.org/pragma.html#pragma_journal_mode
* @see https://www.sqlite.org/wal.html
* @see https://stackoverflow.com/questions/52378361/which-nfs-implementation-is-safe-for-sqlite-database-accessed-by-multiple-proces
*
* Default: 'TRUNCATE'
* @var string
*/
const SQLITE_JOURNAL_MODE = 'TRUNCATE';
/**
* ERRORS_SHOW
* Show PHP errors details to users?
* If set to TRUE, full error messages and source code will be displayed to visitors.
* If set to FALSE, just a generic "an error happened" message will be displayed.
*
* It is recommended to set this to FALSE in production.
* Default: TRUE
*
* @var bool
*/
const ERRORS_SHOW = true;
/**
* ERRORS_EMAIL
* Send PHP errors to this email address
* The email will contain
* Default: NULL (errors are not sent by email)
*
* @var string|null
*/
const ERRORS_EMAIL = null;
/**
* ERRORS_LOG
* Log PHP errors in this file.
* Default: ROOT/data/error.log
*
* @var string
*/
const ERRORS_LOG = DATA_ROOT . '/error.log';
/**
* ERRORS_REPORT_URL
* Send errors reports to this errbit/airbrake compatible API endpoint
* Default: NULL
* Example: 'https://user:password@domain.tld/errors'
*
* @var string|null
* @see https://errbit.com/images/error_summary.png
* @see https://airbrake.io/docs/api/#create-notice-v3
*/
const ERRORS_REPORT_URL = null;
/**
* DEBUG_LOG
* Log API calls to this file.
* Useful for development.
*
* Default: null (= disabled)
* @var string|null
*/
const DEBUG_LOG = DATA_ROOT . '/debug.log';