Files
nexusphp/config/nexus.php

40 lines
1.1 KiB
PHP
Raw Normal View History

2021-01-30 13:53:15 +08:00
<?php
return [
2021-04-02 19:48:41 +08:00
'timezone' => nexus_env('TIMEZONE', 'PRC'),
2021-01-30 13:53:15 +08:00
2021-04-02 19:48:41 +08:00
'log_file' => nexus_env('LOG_FILE', '/tmp/nexus.log'),
2021-01-30 13:53:15 +08:00
2021-04-02 19:48:41 +08:00
'log_split' => nexus_env('LOG_SPLIT', 'daily'),
2021-01-30 13:53:15 +08:00
2021-04-02 19:48:41 +08:00
'mysql' => [
2021-04-30 15:10:31 +08:00
'host' => nexus_env('DB_HOST', '127.0.0.1'),
'port' => nexus_env('DB_PORT', 3306),
'username' => nexus_env('DB_USERNAME', 'root'),
'password' => nexus_env('DB_PASSWORD', ''),
'database' => nexus_env('DB_DATABASE', 'nexusphp'),
2021-04-02 19:48:41 +08:00
],
'redis' => [
'host' => nexus_env('REDIS_HOST', '127.0.0.1'),
'port' => nexus_env('REDIS_PORT', 6379),
2021-04-30 15:10:31 +08:00
'database' => nexus_env('REDIS_DB', 0),
2021-04-02 19:48:41 +08:00
],
2022-03-26 04:27:04 +08:00
'elasticsearch' => [
'hosts' => [
[
'host' => nexus_env('ELASTICSEARCH_HOST','localhost'),
'port' => nexus_env('ELASTICSEARCH_PORT','9200'),
'scheme' => nexus_env('ELASTICSEARCH_SCHEME','https'),
'user' => nexus_env('ELASTICSEARCH_USER','elastic'),
'pass' => nexus_env('ELASTICSEARCH_PASS',''),
]
],
'ssl_verification' => nexus_env('ELASTICSEARCH_SSL_VERIFICATION', ''),
]
2021-04-02 19:48:41 +08:00
];