· 6 years ago · Jul 05, 2019, 08:20 AM
1<?php
2/* ========================================
3 * The base configuration for WordPress
4 * ========================================
5 *
6 * https://github.com/WordPress/WordPress/blob/master/wp-config-sample.php
7 */
8
9/**
10 * Load database info and local development parameters
11 */
12switch (getenv('WORDPRESS_ENV')) {
13 case "development": {
14 define('DB_NAME', getenv('WORDPRESS_DB_NAME'));
15 define('DB_USER', getenv('WORDPRESS_DB_USER'));
16 define('DB_PASSWORD', getenv('WORDPRESS_DB_PASSWORD'));
17 define('DB_HOST', 'db');
18
19 define('WP_HOME', 'http://' . getenv('DEVELOPMENT_DOMAIN'));
20 define('WP_SITEURL', 'http://' . getenv('DEVELOPMENT_DOMAIN') . '/wp');
21
22 define('WP_CONTENT_DIR', dirname( __FILE__ ) . '/wp-content');
23 define('WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/wp-content');
24
25 define('SAVEQUERIES', true);
26 define('WP_DEBUG', true);
27 define('FS_METHOD', 'direct');
28
29 break;
30 }
31
32 default: {
33 define('DB_NAME', '');
34 define('DB_USER', '');
35 define('DB_PASSWORD', '');
36 define('DB_HOST', 'localhost');
37
38 define('WP_HOME', 'https://srvr10.xetpoint.com/~seyfi');
39 define('WP_SITEURL', 'https://srvr10.xetpoint.com/~seyfi/wp');
40
41 define('WP_CONTENT_DIR', dirname(__FILE__) . '/wp-content');
42 define('WP_CONTENT_URL', 'https://' . $_SERVER['HTTP_HOST'] . '/~seyfi/wp-content');
43
44 define('WP_DEBUG', true);
45 define('WP_DEBUG_DISPLAY', false);
46 define('WP_DEBUG_LOG', true);
47 ini_set('display_errors', 0);
48
49 break;
50 }
51}
52
53/**
54 * Database Charset to use in creating database tables.
55 */
56define('DB_CHARSET', 'utf8');
57
58/**
59 * The Database Collate type. Don't change this if in doubt
60 */
61define('DB_COLLATE', '');
62
63/**
64 * Allow database repairing
65 */
66// define('WP_ALLOW_REPAIR', true);
67
68/**
69 * Add/activate default theme when creating new blogs (Jäsenyhdistys pages)
70 */
71define('WP_DEFAULT_THEME', 'sey-association');
72
73/**
74 * WP Rocket credentials
75 */
76if (!defined('WP_ROCKET_KEY')) {
77 define('WP_ROCKET_KEY', 'fa7394c9');
78}
79
80if (!defined('WP_ROCKET_EMAIL')) {
81 define('WP_ROCKET_EMAIL', 'marko.kujala@mediasignal.fi');
82}
83
84/**
85 * Authentication Unique Keys and Salts.
86 *
87 * Change these to different unique phrases!
88 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
89 * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
90 *
91 * @since 2.6.0
92 */
93define('AUTH_KEY', '');
94define('SECURE_AUTH_KEY', '');
95define('LOGGED_IN_KEY', '');
96define('NONCE_KEY', '');
97define('AUTH_SALT', '');
98define('SECURE_AUTH_SALT', '');
99define('LOGGED_IN_SALT', '');
100define('NONCE_SALT', '');
101
102
103/**
104 * WordPress Database Table prefix.
105 *
106 * You can have multiple installations in one database if you give each
107 * a unique prefix. Only numbers, letters, and underscores please!
108 */
109$table_prefix = 'wp_';
110
111/**
112 * Setup multisite
113 */
114define('WP_ALLOW_MULTISITE', true);
115define('MULTISITE', true);
116define('SUBDOMAIN_INSTALL', false);
117define('DOMAIN_CURRENT_SITE', getenv('WORDPRESS_ENV') == 'development' ? getenv('DEVELOPMENT_URL') : 'srvr10.xetpoint.com');
118define('PATH_CURRENT_SITE', getenv('WORDPRESS_ENV') == 'development' ? '/' : '/~seyfi/');
119define('SITE_ID_CURRENT_SITE', 1);
120define('BLOG_ID_CURRENT_SITE', 1);
121
122/**
123 * If we're behind a proxy server and using HTTPS, we need to alert Wordpress of that fact
124 * see also http://codex.wordpress.org/Administration_Over_SSL#Using_a_Reverse_Proxy
125 */
126if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
127 $_SERVER['HTTPS'] = 'on';
128}
129
130/**
131 * Absolute path to the WordPress directory.
132 */
133if (!defined('ABSPATH')) {
134 define('ABSPATH', dirname( __FILE__ ) . '/~seyfi/wp/');
135}
136
137/**
138 * Sets up WordPress vars and included files.
139 */
140require_once(ABSPATH . 'wp-settings.php');