Browse Source
Fix #1098 Move the Movim configuration to DotEnv
Fix #1098 Move the Movim configuration to DotEnv
Fix #509 Make Movim cache and log path configurablepull/1104/head
14 changed files with 391 additions and 140 deletions
-
18.env.example
-
2.gitignore
-
75app/helpers/UtilsHelper.php
-
3composer.json
-
237composer.lock
-
13config/daemon.php
-
14config/database.php
-
17config/db.example.inc.php
-
10config/paths.php
-
4linker.php
-
12phinx.php
-
84src/Movim/Bootstrap.php
-
30src/Movim/Console/DaemonCommand.php
-
12src/Movim/Daemon/Core.php
@ -0,0 +1,18 @@ |
|||
# Database configuration |
|||
DB_DRIVER=pgsql |
|||
DB_HOST=localhost |
|||
DB_PORT=5432 |
|||
DB_DATABASE=movim |
|||
DB_USERNAME=movim |
|||
DB_PASSWORD=movim |
|||
|
|||
# Daemon configuration |
|||
DAEMON_URL=https://public-movim.url/ # Public URL of your Movim insta |
|||
DAEMON_PORT=8080 # Port on which the daemon will listen |
|||
DAEMON_INTERFACE=localhost # Interface on which the daemon will listen |
|||
DAEMON_DEBUG=false |
|||
DAEMON_VERBOSE=false |
|||
|
|||
# Configurable paths, complete path required |
|||
CACHE_PATH= |
|||
LOG_PATH= |
@ -0,0 +1,13 @@ |
|||
<?php |
|||
|
|||
/** |
|||
* Movim daemon default values |
|||
*/ |
|||
|
|||
return [ |
|||
'url' => env('DAEMON_URL', null), |
|||
'port' => env('DAEMON_PORT', 8080), |
|||
'interface' => env('DAEMON_INTERFACE', 'localhost'), |
|||
'debug' => env('DAEMON_DEBUG', false), |
|||
'verbose' => env('DAEMON_VERBOSE', false), |
|||
]; |
@ -0,0 +1,14 @@ |
|||
<?php |
|||
|
|||
/** |
|||
* Movim database default values |
|||
*/ |
|||
|
|||
return [ |
|||
'driver' => env('DB_DRIVER', 'pgsql'), |
|||
'host' => env('DB_HOST', 'localhost'), |
|||
'port' => (int)env('DB_PORT', 5432), |
|||
'username' => env('DB_USERNAME', 'movim'), |
|||
'password' => env('DB_PASSWORD', 'movim'), |
|||
'database' => env('DB_DATABASE', 'movim') |
|||
]; |
@ -1,17 +0,0 @@ |
|||
<?php |
|||
# This is the database configuration of Movim
|
|||
# You need to copy an rename this file to 'db.inc.php' and complete the values
|
|||
$conf = [ |
|||
# The type can be 'pgsql' or 'mysql'
|
|||
'type' => 'pgsql', |
|||
# The database username
|
|||
'username' => 'username', |
|||
# The password
|
|||
'password' => 'password', |
|||
# Where can we find the database ?
|
|||
'host' => 'localhost', |
|||
# The port number, 3306 for MySQL and 5432 for PostgreSQL
|
|||
'port' => 5432, |
|||
# The database name
|
|||
'database' => 'movim' |
|||
]; |
@ -0,0 +1,10 @@ |
|||
<?php |
|||
|
|||
/** |
|||
* Movim default paths |
|||
*/ |
|||
|
|||
return [ |
|||
'cache' => env('CACHE_PATH', DOCUMENT_ROOT . '/cache/'), |
|||
'log' => env('LOG_PATH', DOCUMENT_ROOT . '/log/'), |
|||
]; |
Write
Preview
Loading…
Cancel
Save
Reference in new issue