Commit 274617be by 杨昕

兼容环境变量

parent 5f075b7e
Pipeline #10087 passed with stages
in 37 seconds
...@@ -85,11 +85,11 @@ return [ ...@@ -85,11 +85,11 @@ return [
'mongodb' => [ 'mongodb' => [
'driver' => 'mongodb', 'driver' => 'mongodb',
'host' => 'mongo.eoffcn.com', 'host' => env('mg_host')??'mongo.eoffcn.com',
'port' => '28017', 'port' => env('mg_port')??'28017',
'database' => 'video_media', 'database' => 'video_media',
'username' => 'root', 'username' => env('mg_username')??'root',
'password' => 'FHHTH98AWAPoyweEasdfadfaaf', 'password' => env("mg_password")??'FHHTH98AWAPoyweEasdfadfaaf',
'options' => [ 'options' => [
'database' => 'admin', // sets the authentication database required by mongo 3 'database' => 'admin', // sets the authentication database required by mongo 3
] ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment