Config.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: phperstar
  5. * Date: 2020/11/5
  6. * Time: 11:48 AM
  7. */
  8. return [
  9. 'service' => [
  10. 'type' => 'WebsocketServer',
  11. 'module' => 'Order',
  12. 'host' => '0.0.0.0',
  13. 'port' => 9503,
  14. 'ssl' => true,
  15. ],
  16. 'ssl' => [
  17. 'ssl_cert_file' => '/www/server/panel/vhost/cert/api.junhailan.com/fullchain.pem',
  18. 'ssl_key_file' => '/www/server/panel/vhost/cert/api.junhailan.com/privkey.pem',
  19. ],
  20. 'app_name' => 'seablue_websocket',
  21. //'logPath' => '/www/wwwroot/logs/api.junhailan.com/', // 日志目录
  22. 'logPath' => '/www/wwwroot/logs/api.junhailan.com/websocket/'.date("Ymd"), // 日志目录
  23. 'logSaveFileApp' => 'websocketinfo.log', // 默认日志文件名称
  24. 'db' => [
  25. 'pifabbc' => [
  26. 'driver' => 'mysql',
  27. 'host' => '127.0.0.1',
  28. 'port' => '3306',
  29. 'username' => 'root',
  30. 'password' => '0d6047adbbae53c7_test',
  31. 'dbname' => 'qnys_devanfei_test',
  32. 'prefix' => 'qianniao',
  33. 'pconnect' => 0,
  34. 'charset' => 'utf8',
  35. ]
  36. ],
  37. 'cache' => [
  38. //权限
  39. 'default' => [
  40. 'storage' => 'redis',
  41. 'host' => '127.0.0.1',
  42. 'port' => '6379',
  43. 'auth' => '',
  44. 'prefix' => 'new_sb_ws_',
  45. 'database' => '0',
  46. ],
  47. ]
  48. ];