Typecho 1.2
typecho.zip

使用宝塔Nginx搭建WebDav时不显示隐藏文件

修改右侧边栏最新文章为最新修改

/typecho/var/Widget/Contents/Post/Recent.php,table.contents.create 改为 table.contents.modified

2025-01-24T01:21:17.png

修改本地在线兼容的host获取

// config.inc.php
// ATY: user current host url, not localhost
define('__TYPECHO_DYNAMIC_SITE_URL__', 1);

更改编辑文章插入附件时自动生成的连接为相对链接并去除http

// config.inc.php
// ATY: remove http://xxx:xxx in files url
define('__TYPECHO_UPLOAD_URL__', '');

pagedown.js,修改 (t = 'http://' + t) 去除 http://

2025-01-24T01:29:59.png

更改环境时记得在config.inc.php修改DB文件目录

2025-01-24T01:24:03.png

PHP打开或安装mbstring

宝塔设置typecho伪静态

if (!-e $request_filename) {
    rewrite ^(.*)$ /index.php$1 last;
}

2025-01-24T01:40:52.png

修改宝塔默认HTTP_HOST不返回Port

/www/server/nginx/conf/fastcgi.conf fastcgi_param HTTP_HOST $host:$server_port;

2025-01-24T01:42:06.png

修改nginx及PHP配置

2025-01-24T01:28:42.png
2025-01-24T01:28:54.png

账号备份

https://forum.typecho.org/ : AaronMZ

可道云基础配置

# php.ini
post_max_size = 512M;
upload_max_filesize = 512M;
memory_limit = 512M;
max_execution_time = 3600;
max_input_time = 3600;
# php-fpm
request_terminate_timeout = 3600
# PHP开启shell_exec、exec函数(解压等操作会用到),在‘禁用函数’中删除对应项即可。

2025-01-24T01:47:42.png
2025-01-24T01:47:52.png

2025-01-24T01:50:02.png
2025-01-24T01:50:14.png

可道云优化

https://doc.kodcloud.com/v2/#/help/options
配置优化 - 可道云KODBOX-OpenAPI及开发文档_企业网盘_企业云盘_网盘_云盘.pdf

评论已关闭

Loading...
Fullscreen Image