nystudio107 /
craft-connect
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Connect plugin for Craft CMS 3.x |
||
| 4 | * |
||
| 5 | * Allows you to connect to external databases and perform db queries |
||
| 6 | * |
||
| 7 | * @link https://nystudio107.com/ |
||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 8 | * @copyright Copyright (c) 2018 nystudio107 |
||
|
0 ignored issues
–
show
|
|||
| 9 | */ |
||
|
0 ignored issues
–
show
|
|||
| 10 | |||
| 11 | /** |
||
| 12 | * Connect config.php |
||
| 13 | * |
||
| 14 | * This file exists only as a template for the Connect settings. |
||
| 15 | * It does nothing on its own. |
||
| 16 | * |
||
| 17 | * Don't edit this file, instead copy it to 'craft/config' as 'connect.php' |
||
| 18 | * and make your changes there to override default settings. |
||
| 19 | * |
||
| 20 | * Once copied to 'craft/config', this file will be multi-environment aware as |
||
| 21 | * well, so you can have different settings groups for each environment, just as |
||
| 22 | * you do for 'general.php' |
||
| 23 | */ |
||
| 24 | |||
| 25 | return [ |
||
| 26 | 'connections' => [ |
||
| 27 | 'remote' => [ |
||
| 28 | 'driver' => getenv('REMOTE_DB_DRIVER'), |
||
| 29 | 'server' => getenv('REMOTE_DB_SERVER'), |
||
| 30 | 'user' => getenv('REMOTE_DB_USER'), |
||
| 31 | 'password' => getenv('REMOTE_DB_PASSWORD'), |
||
| 32 | 'database' => getenv('REMOTE_DB_DATABASE'), |
||
| 33 | 'schema' => getenv('REMOTE_DB_SCHEMA'), |
||
| 34 | 'tablePrefix' => getenv('REMOTE_DB_TABLE_PREFIX'), |
||
| 35 | 'port' => getenv('REMOTE_DB_PORT') |
||
| 36 | ], |
||
| 37 | ], |
||
| 38 | ]; |
||
| 39 |