setting.php Rest API Dengan JSON Web Token Slim 3
<?php | |
return [ | |
'settings' => [ | |
'displayErrorDetails' => true, // set to false in production | |
'addContentLengthHeader' => false, // Allow the web server to send the content-length header | |
// Renderer settings | |
'renderer' => [ | |
'template_path' => __DIR__ . '/../templates/', | |
], | |
// Monolog settings | |
'logger' => [ | |
'name' => 'slim-app', | |
'path' => isset($_ENV['docker']) ? 'php://stdout' : __DIR__ . '/../logs/app.log', | |
'level' => \Monolog\Logger::DEBUG, | |
], | |
// database | |
'db' => [ | |
'host' => 'localhost', | |
'dbname' => 'slim3_rest_api_jwt', | |
'user' => 'root', | |
'pass' => 'j.fUjHyL', | |
'driver' => 'mysql', | |
], | |
// jwt settings | |
'jwt' => [ | |
'secret' => 'supersecretkeyyoushouldnotcommittogithub' | |
] | |
], | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment