
0
Unraid installation filerun super detailed guide (UNRAID安装filerun超详细指导)
Sorry, my English is really poor, but when filerun is installed on unraid, I have encountered too many problems. I have summarized a great part of the points that need attention, so I hope it can be helpful to you
安装配置选项
1. 安装前先在 \appdata\filerun\html\customizables 下手动新建一个 config.php 文件
没有目录就手动创建目录,注意和后面配置的阿帕奇用户的权限保持一致
mkdir -p /mnt/user/appdata/filerun/html/customizables
nano /mnt/user/appdata/filerun/html/customizables/config.php
粘贴下面内容到config.php文件
<?php
umask(000); #配置文件里的umask是不生效的,要在这里修改才能让其他用户如nobody不是只读
date_default_timezone_set("Asia/Shanghai"); # 时区
$config['path']['thumbnail_cache'] = '/var/www/html/cache'; # 缩略图更换路径,集中管理
$config['app']['upload']['max_simultaneous'] = 15; # 同时上传文件数
$config['thumbs']['limit_file_size'] = 20971520; # 默认略缩图大小限制为20MB
- umask的修改参考来自 : https://forums.unraid.net/topic/119147-filerun-fix-default-permissions/#comment-1089794
- +额外内容 : 可以添加下面这段,屏蔽文件夹读取
<?php
umask(000);
$config['app']['hidden_folder_names'][] = "appdata";
$config['app']['hidden_folder_names'][] = "appdata-backup";
$config['app']['hidden_folder_names'][] = "isos";
$config['app']['hidden_folder_names'][] = "domains";
$config['app']['hidden_folder_names'][] = "system";
?php>
ctrl+x ,Y,enter ,保存后记得修改 /appdata/filerun 文件夹的所有者
chown -R admin /mnt/user/appdata/filerun
- 这里有更多的官方高级配置文档说明 : https://docs.filerun.com/advanced_configuration
2. docker配置
- docker中的 /user-files 文件夹不要直接映射到 /mnt/user/,可以用 /mnt/user/filerun/ 或者 /mnt/user1/ 这样的形式
- 使用硬链接的方式,把文件夹链接到 /mnt/user/filerun/ 文件夹中去以防被一锅端改了文件夹权限,影响系统环境
- APACHE的用户UID和GID直接影响到映射后的 /mnt/user/filerun/ 文件夹的权限属性 ,以及后续在网盘中修改读写保存后的属性也是一样的
3.filerun应用内的设置
* 启动后打开webui,注意记录初始随机生成的密码
* 左下角的control panel 打开设置界面,修改超级管理员密码
* 改中文,自定义界面
- 下载地址:https://pan.baidu.com/s/10nqVrAUrTxpgONjuXtxbdw 提取码da35
* 修改默认office文档的打开方式(libreoffice打开中文不显示), 也可以额外安装onlyoffice链接进来
* 开启API才能手机用nextcloud的app访问
* 授权
- 可以把最大用户从5个增加到10个(官方论坛没有注册入口,授权以后才能获得账号,在官方论坛发帖求助和评论)
- 授权后,本地内网就不能访问了,可以在 \appdata\filerun\html\system\data\ 删除 '.filerun.bin' 即可恢复3.1 开启全文档搜索的方法
3.1 开启全文档搜索的方法
https://docs.filerun.com/file_indexing
3.2 windows端 : 链接资源管理器
3.2.1 打开我的电脑,空白处右键添加一个网络位置
3.2.2 下一步,下一步,输入网址 , 输入filerun的账号密码
https://ABC.DEF.GH/dav.php/@Home/
+ ABC.DEF.GH 替换成自己的域名
3.2.3 改个自己喜欢的名字
3.2.4 现在就可以远程办公场所直接访问了
3.3 移动端 :
- 移动端推荐使用nextcloud或者FE文件管理器
- nextcloud : https://apps.apple.com/cn/app/nextcloud/id1125420102
踩坑
- office中文乱码的临时解决方法(测试无效)
customizables/plugins/office_web_viewer/app.php 文件夹
$url = 'https://view.officeapps.live.com/op/embed.aspx?src='.urlencode($url);
改成
$url = 'https://view.officeapps.live.com/op/embed.aspx?src='.($url);
- 如果使用chrome遇到
这种情况,1.尝试修改/appdata/filerun下的php文件,2.以及关闭浏览器某些冲突插件,3.可以用无痕模式测试
<?php
$config['url']['root'] = 'https://your-site/path-to-filerun/';
$config['url']['detected_root'] = $config['url']['root'];
其他参考 :
https://feedback.filerun.com/en/communities/1/topics/1364-nginx-proxy-manager-wan-access-lan-access
https://feedback.filerun.com/en/communities/1/topics/1161-docker-documentation-additions-suggestions
https://feedback.filerun.com/en/communities/1/topics/1343-login-issue-traefik-v2
Customer support service by UserEcho