-
Notifications
You must be signed in to change notification settings - Fork 1
/
_ss_environment_default.php
172 lines (144 loc) · 7.8 KB
/
_ss_environment_default.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
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
161
162
163
164
165
166
167
168
169
170
171
172
<?php
/**
* Default Environment File
* altenate to your local needs and remove _default from filename
*
* see http://doc.silverstripe.org/framework/en/topics/environment-management
*/
/* Database connection */
define('SS_DATABASE_CLASS', 'MySQLPDODatabase');
define('SS_DATABASE_SERVER', 'localhost');
define('SS_DATABASE_USERNAME', '__USERNAME__');
define('SS_DATABASE_PASSWORD', '__PASSWORD__');
define('SS_DATABASE_NAME', '__DATABASE__');
/* What kind of environment is this: dev, test, or live (ie, production)? */
define('SS_ENVIRONMENT_TYPE', 'live');
// These two defines sets a default login which, when used, will always log
// you in as an admin, even creating one if none exist.
define('SS_DEFAULT_ADMIN_USERNAME', '__ADMIN__');
define('SS_DEFAULT_ADMIN_PASSWORD', '__PASSWORD__');
// This causes errors to be written to the silverstripe.log file in the same directory as this file, so /var.
// Before PHP 5.3.0, you'll need to use dirname(__FILE__) instead of __DIR__
//define('SS_ERROR_LOG', '/'.__DIR__ . '/silverstripe.log');
// You can set a specific TEMP_FOLDER
// Default silverstripe-cache is used, if available
//define('TEMP_FOLDER', __DIR__ . '/silverstripe-cache');
// On Development Environments all Emails can be directed to only one Email Adress
// Also you can specify the Form field
//define('SS_SEND_ALL_EMAILS_TO','');
//define('SS_SEND_ALL_EMAILS_FROM','');
// To be able to use opcode for manifest files define one of the following
define('SS_MANIFESTCACHE', 'ManifestCache_File_PHP'); // on zend opcache installation, this might be faster
//define('SS_MANIFESTCACHE', 'ManifestCache_APC');
// if varnish stays in front and geoip is used, this variable will read the geolocation from x-forwarded-for
//define('GEOIP_SERVER_VAR', 'HTTP_X_FORWARDED_FOR');
// geolocation needs a UDF (mysql user defined function) to be created
// either create this function manually or on each /dev/build
//define('CREATE_GEODISTANCE_UDF', true);
// Self Defined Variables
// Admin Email Address (From)
define('ADMIN_EMAIL','__EMAIL__');
// Error Log Email Address
define('LOG_EMAIL','__EMAIL__');
// Default Destionation path after successfull login
define('DEFAULT_LOGIN_DESTINATION', '__CONTROLLER/ACTION__');
// Modules
// smtpmailer
define('SMTPMAILER_CHARSET_ENCODING','utf-8');
define('SMTPMAILER_SERVER_ADDRESS','smtp.gmail.com');
define('SMTPMAILER_SERVER_PORT','465');
define('SMTPMAILER_SECURE_CONNECTION','ssl'); // 'ssl', 'tls', ''
define('SMTPMAILER_DO_AUTHENTICATE',true); // true, false
define('SMTPMAILER_USERNAME','__EMAILADDRESS__');
define('SMTPMAILER_PASSWORD','__PASSWORD__');
define('SMTPMAILER_DEBUG_LEVEL',0);# Print debugging informations. 0 = no debuging, 1 = print errors, 2 = print errors and messages, 4 = print full activity
define('SMTPMAILER_LANGUAGE','de');# Language for messages. Look into code/vendor/language for available languages
// EmailVerifiedMember
//define('EMAILVERIFIEDMEMBER_VALIDATION_DOMAIN','http://__DOMAIN__'); // Domain used in validation email
//define('EMAILVERIFIEDMEMBER_LOGIN_AFTER_VALIDATION',true);
//define('EMAILVERIFIEDMEMBER_ADD_TO_FRONTEND_GROUP',true);
//define('EMAILVERIFIEDMEMBER_DEFAULT_VERIFIED_DESTINATION', DEFAULT_LOGIN_DESTINATION);
global $_FILE_TO_URL_MAPPING;
$_FILE_TO_URL_MAPPING['__ABSOLUTEPATH__'] = 'http://__DOMAIN__';
// Social Connect
//define('FACEBOOK_APP_ID','YOUR_FACEBOOK_APP_ID');
//define('FACEBOOK_APP_SECRET','YOUR_FACEBOOK_APP_SECRET');
//define('FACEBOOK_REDIRECT_URL','YOUR_FACEBOOK_REDIRECT_URL'); // http://YOURDOMAIN/facebook/auth
//define('FACEBOOK_SCOPE','YOUR_FACEBOOK_SCOPE'); // email,user_about_me,user_birthday
//define('FACEBOOK_FIELDS','YOUR_FACEBOOK_FIELDS'); // https://graph.facebook.com/me?fields= eg: id,name,email
//define('FACEBOOK_SIGNUP_PATH','facebook/signup'); // change for custom signup page
//define('FACEBOOK_EMAILEXISTS_PATH','facebook/emailexists'); // change for custom emailexists page
//define('FACEBOOK_ERROR_PATH','facebook/error');
//define('GOOGLE_CLIENT_ID','YOUR_GOOGLE_CLIENT_ID');
//define('GOOGLE_CLIENT_SECRET','YOUR_GOOGLE_CLIENT_SECRET');
//define('GOOGLE_REDIRECT_URL','YOUR_GOOGLE_REDIRECT_URL'); // http://YOURDOMAIN/google/auth
//define('GOOGLE_SCOPE','YOUR_GOOGLE_SCOPE'); // https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile
//define('GOOGLE_SIGNUP_PATH','google/signup'); // change for custom signup page
//define('GOOGLE_EMAILEXISTS_PATH','google/emailexists'); // change for custom emailexists page
//define('GOOGLE_ERROR_PATH','google/error');
//define('TWITTER_CONSUMER_KEY','YOUR_TWITTER_CONSUMER_KEY');
//define('TWITTER_CONSUMER_SECRET','YOUR_TWITTER_CONSUMER_SECRET');
//define('TWITTER_CALLBACK_URL','YOUR_TWITTER_CALLBACK_URL'); // http://YOURDOMAIN/twitter/auth
//define('TWITTER_SIGNUP_PATH','twitter/signup'); // change for custom signup page
//define('TWITTER_ERROR_PATH','twitter/error');
//define('INSTAGRAM_CLIENT_ID', 'YOUR_INSTAGRAM_CLIENT_ID');
//define('INSTAGRAM_CLIENT_SECRET', 'YOUR_INSTAGRAM_CLIENT_SECRET');
//define('INSTAGRAM_REDIRECT_URL', 'YOUR_INSTAGRAM_REDIRECT_URL');
//define('INSTAGRAM_SCOPE','YOUR_INSTAGRAM_SCOPE'); // basic
//define('INSTAGRAM_SIGNUP_PATH','instagram/signup'); // change for custom signup page
//define('INSTAGRAM_ERROR_PATH','instagram/error');
// Session Extender
define('SESSIONID','PHPSESSID');
define('SESSIONLIFETIME',(60*60*2)); // two hours
// if redis should be used for Session Savepath
// https://github.com/phpredis/phpredis#php-session-handler
//define('SESSIONSAVEHANDLER', 'redis');
//define('SESSIONSAVEPATH', 'tcp://127.0.0.1:6379?prefix=mySessionPrefix');
// if memcached should be used for Session Savepath
//define('SESSIONSAVEHANDLER', 'memcached');
//define('SESSIONSAVEPATH', '127.0.0.1:11211');
// Google Maps API Key
// If using one of the GeoLocation Fields and Requests to Google Maps Api exceeds the Number of free Requests
//define('GOOGLE_MAPS_API_KEY', 'ABQIAAAAbnvDoAoYOSW2iqoXiGTpYBTIx7cuHpcaq3fYV4NM0BaZl8OxDxS9pQpgJkMv0RxjVl6cDGhDNERjaQ'); // Old API Key for Localhost
// Benchmark Credentials
// Set these Credentials as HTTP Header (HTTP_BENCHMARK_KEY, HTTP_BENCHMARK_SECRET) on your Load Testing Tool
// define('BENCHMARK_KEY', 'YOUR_BENCHMARK_KEY');
// define('BENCHMARK_SECRET', 'YOUR_BENCHMARK_SECRET');
// gua-cookie-policy Plugin
// necessary to comply with EU Cookie Law
// follow the Instructions in the modules Readme
//define('GOOGLE_ANALYTICS_ID', 'YOUR_GOOGLE_ANALYTICS_ID');
//define('GOOGLE_ANALYTICS_PRIVACY_URL', 'YOUR_GOOGLE_ANALYTICS_PRIVACY_URL');
// Heise Shariff Social Media Plugin
// necessary to comply with EU Cookie Law
// Follow the config settings of https://github.com/heiseonline/shariff-backend-php
//define('SHARIFF_OPTIONS', json_encode(array(
// "domain" => 'YOURDOMAIN',
// "cache" => ["ttl" => 1],
// "services" => ["Facebook", "GooglePlus", "Twitter", "LinkedIn", "Reddit", "StumbleUpon", "Flattr", "Pinterest"]
//)));
// minify module, minifies html, css and javascript
// uncomment the following and use as a template, if you want to use a custom caching backend
// Minify Caching Backend
//define('MINIFY_CACHE_BACKEND', serialize(array(
// "Type" => "Libmemcached",
// "Options" => array(
// "servers" => array(
// 'host' => 'localhost',
// 'port' => 11211,
// 'persistent' => true,
// 'weight' => 1,
// 'timeout' => 5,
// 'retry_interval' => 15,
// 'status' => true,
// 'failure_callback' => ''
// )
// )
//)));
//define('MINIFY_CACHE_LIFETIME', -1); // Lifetime in seconds, -1 for unlimited
// Silverstripe behind ReverseProxy (nginx e.g.)
//define('SS_TRUSTED_PROXY_IPS', 'IP_1,IP_2,IP_3,...');
// Additionals, see framework/core/startup/ParameterConfirmationToken.php
// HTTP_X_FORWARDED_FOR
// HTTP_X_FORWARDED_HOST
// HTTP_X_FORWARDED_PROTO/HTTP_X_FORWARDED_PROTOCOL = https