xref: /web-bugs/config/parameters.php (revision fd1338e3)
1<?php
2
3/**
4 * Application configuration parameters.
5 */
6
7return [
8    /**
9     * Application environment. Can be one of ['dev', 'prod'].
10     */
11    'env' => (defined('DEVBOX') && true === DEVBOX) ? 'dev' : 'prod',
12
13    /**
14     * Site scheme - http or https.
15     */
16    'site_scheme' => $site_data['method'],
17
18    /**
19     * Site URL.
20     */
21    'site_url' => $site_data['url'],
22
23    /**
24     * Site base path if present. Part that comes after the domain
25     * https://bugs.php.net/basedir/
26     */
27    'basedir' => $site_data['basedir'],
28
29    /**
30     * Database username.
31     */
32    'db_user' => $site_data['db_user'],
33
34    /**
35     * Database password.
36     */
37    'db_password' => $site_data['db_pass'],
38
39    /**
40     * Database host name.
41     */
42    'db_host' => $site_data['db_host'],
43
44    /**
45     * Database name.
46     */
47    'db_name' => $site_data['db'],
48
49    /**
50     * Main email of the public mailing list.
51     */
52    'email'=> $site_data['email'],
53
54    /**
55     * Email of the public mailing list for documentation related bugs.
56     */
57    'doc_email' => $site_data['doc_email'],
58
59    /**
60     * Security email - emails sent to this are not visible in public.
61     */
62    'security_email' => $site_data['security_email'],
63
64    /**
65     * Uploads directory location.
66     */
67    'uploads_dir' => $site_data['patch_tmp'],
68
69    /**
70     * Templates directory.
71     */
72    'templates_dir' => __DIR__.'/../templates',
73];
74