TaoLer/config/taoler.php

86 lines
1.8 KiB
PHP
Raw Permalink Normal View History

<?php
2022-04-17 17:09:19 +08:00
/*
2022-08-02 21:13:36 +08:00
* @Author: TaoLer <alipay_tao@qq.com>
2022-04-17 17:09:19 +08:00
* @Date: 2021-12-06 16:04:50
2022-08-02 21:13:36 +08:00
* @LastEditTime: 2022-06-27 13:14:46
2022-04-17 17:09:19 +08:00
* @LastEditors: TaoLer
* @Description: 网站公共配置
2022-04-17 17:09:19 +08:00
* @FilePath: \TaoLer\config\taoler.php
2022-08-02 21:13:36 +08:00
* Copyright (c) 2020~2022 https://www.aieok.com All rights reserved.
2022-04-17 17:09:19 +08:00
*/
// +----------------------------------------------------------------------
// | 网站公共配置
// +----------------------------------------------------------------------
return [
2022-04-17 17:09:19 +08:00
// 应用名,此项不可更改
2021-03-19 17:21:22 +08:00
'appname' => 'TaoLer',
2022-04-17 17:09:19 +08:00
// 版本配置
2023-07-03 12:56:37 +08:00
'version' => '2.3.9',
2022-04-17 17:09:19 +08:00
// 加盐
'salt' => 'taoler',
2022-04-17 17:09:19 +08:00
// 数据库备份目录
2021-07-22 10:54:03 +08:00
'databasebackdir' => app()->getRootPath() .'data/',
2022-08-02 18:46:05 +08:00
2022-04-17 17:09:19 +08:00
// 配置
2021-07-22 10:54:03 +08:00
'config' =>[
2022-08-02 21:13:36 +08:00
// 注册开关
'is_regist' => 1,
// 登录开关
'is_login' => 1,
// 发帖开关
'is_post' => 1,
// 评论开关
'is_reply' => 1,
// 注册审核
'regist_check' => 0,
// 发帖审核
'posts_check' => 0,
// 评论审核
'commnets_check' => 0,
// 注册验证类型 1验证码2邮箱3手机短信
'regist_type' => 1,
// 登录验证码
'login_captcha' => 0,
// 发帖验证码
'post_captcha' => 0,
// 显示分类
'cate_show' => 0,
// 显示用户归属地简称
'area_show' => 0,
// 邮件通知
'email_notice' => 0,
// 百度词条开关
'baidu_title_switch' => 0,
2022-04-17 17:09:19 +08:00
],
// 百度标签分词
'baidu' => [
2022-08-02 21:13:36 +08:00
'grant_type' => 'client_credentials',
2022-08-02 18:46:05 +08:00
'client_id' => '',
'client_secret' => '',
2022-04-17 17:09:19 +08:00
'access_token' => '',
2022-08-02 21:13:36 +08:00
'push_api' => '',
2022-04-17 17:09:19 +08:00
],
// sitemap
'sitemap' => [
// 每次生成数量
2022-04-17 17:09:19 +08:00
'map_num' => '1000',
'map_time' => 'daily',
'map_level' => '0.5',
// 已生成id位标记
2022-08-02 21:13:36 +08:00
'write_id' => 21,
2022-04-17 17:09:19 +08:00
],
2021-07-23 17:05:43 +08:00
// URL美化
'url_rewrite' => [
// 详情url
2022-08-02 21:13:36 +08:00
'article_as' => '<ename>/',
// 分类url
2022-08-02 18:46:05 +08:00
'cate_as' => 'column/',
],
2021-07-22 10:54:03 +08:00
];