-
Notifications
You must be signed in to change notification settings - Fork 6
/
config.sample.php
31 lines (25 loc) · 980 Bytes
/
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
<?php
class Config
{
const DB_HOST = "localhost";
const DB_NAME = "photoservice";
const DB_USER = "photoservice_user";
const DB_PASS = "photoservice_pw";
// SHOULD be absolute paths, e.g. for directory unaware cron
const PHOTOS_TMP_DIR = '/var/www/httpdocs/photos_tmp';
const PHOTOS_SRV_DIR = '/var/www/httpdocs/photos_srv';
const CLEANUP_LOG_FILE = '/logs/photo_cleanup.log';
const PHOTOS_SRV_URL = 'https://example.org/pics';
const ALTERNATIVE_PHOTOS_SRV_URLS = array('https://old.example.org/pics');
const ALLOWED_FILE_TYPES = array(
'image/jpeg' => '.jpg'
);
const MAX_UPLOAD_FILE_SIZE_KB = 5000;
const MAX_SRV_DIR_SIZE_MB = 2000;
const MAX_TMP_LIFETIME_HOURS = 24;
const MAX_LIFETIME_AFTER_NOTE_CLOSED_DAYS = 7;
const OSM_OAUTH_TOKEN = null;
/* time the cronjob should spend on photo cleanup (i.e. should be lower than
* PHP timeout) */
const MAX_CRON_CLEANUP_IN_SECONDS = 300;
}