kefu/application/config.php

70 lines
2.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* 通用配置文件
*/
return [
// +----------------------------------------------------------------------
// | 应用设置
// +----------------------------------------------------------------------
// 当前系统版本
'version' => 'v1.0.0',
// 加密盐
'salt' => 'bjjxjy',
// socket server
'socket_host' => '',
'socket_port' => '',
'socket_url' => 'wss://cs' . $_SERVER['HTTP_HOST'],
// 管理员登录时间
'save_time' => 86400,
// 应用命名空间
'app_namespace' => 'app',
// 应用调试模式
'app_debug' => true,
// 应用Trace
'app_trace' => false,
// 'default_filter' => 'htmlspecialchars',
// 图片读取路径前缀
'img_take_prefix' => 'http://' . $_SERVER['HTTP_HOST'],
// 'img_take_prefix' => 'https://xxkefu.oss-cn-hongkong.aliyuncs.com',
'app_id' => '5a7553560c9cf51c105678f3',
'game_backstage_host' => '192.168.106.10',
'api_secret' => 'U8HpGv1ry0yigghDfMp3O6',
// 视图参数配置
'view_replace_str' => [
// '__CDN__'=>'http://cdnbeijing.doudoubei.com',
'__CDN__'=>''
],
'app_id' => '5a7553560c9cf51c105678f3',
'game_host' => 'http://192.168.106.11:9999',
'rbac' => [
'type' => 'service', //验证方式 jwt(token方式)形式或者service(基于cookie)方式
'db' => '', //rbac要使用的数据库配置为空则为默认库(生成表的前缀依赖此配置)
'salt_token' => 'asdfasfdafasf', //token加密密钥
'token_key' => 'Authorization' //header中用于验证token的名称
],
//redis配置
'cache' => [
'type' => 'redis',
'host' => '127.0.0.1',
'port' => '6379',//你redis的端口号可以在配置文件设置其他的
'password' => 'dbmis_redis', //这里是你redis配置的密码如果没有则留空
'timeout' => 3600 //缓存时间
],
'chat_table_num' => 100,
// 谷歌验证下载地址
'ga_android' => 'https://www.wandoujia.com/apps/32913',
'ga_ios' => 'https://apps.apple.com/cn/app/google-authenticator/id388497605',
];