{"id":20555843,"url":"https://github.com/mintimate/oneindexm","last_synced_at":"2025-04-03T02:11:27.404Z","repository":{"id":39518712,"uuid":"296569964","full_name":"Mintimate/OneindexM","owner":"Mintimate","description":"本项目是Oneindex、OneindexN的继承、自用版本。主要针对后台和nexmoe主题进行优化修改。","archived":false,"fork":false,"pushed_at":"2024-05-07T07:45:28.000Z","size":705,"stargazers_count":154,"open_issues_count":5,"forks_count":69,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-24T08:05:32.009Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mintimate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-18T09:03:42.000Z","updated_at":"2025-03-11T15:23:38.000Z","dependencies_parsed_at":"2025-01-16T07:10:53.312Z","dependency_job_id":"ed741945-63ad-43fe-86d3-5c395d5f85c2","html_url":"https://github.com/Mintimate/OneindexM","commit_stats":{"total_commits":11,"total_committers":2,"mean_commits":5.5,"dds":0.09090909090909094,"last_synced_commit":"ee9c63a9681deab30a0f2f92ca59fae51f466e10"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mintimate%2FOneindexM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mintimate%2FOneindexM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mintimate%2FOneindexM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mintimate%2FOneindexM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mintimate","download_url":"https://codeload.github.com/Mintimate/OneindexM/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246922248,"owners_count":20855345,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T03:21:08.716Z","updated_at":"2025-04-03T02:11:27.382Z","avatar_url":"https://github.com/Mintimate.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 简介\n\n本项目是基于：\n\n- Oneindex\n\n- OneindexN项目地址：https://github.com/xieqifei/OneindexN\n\n详细安装教程：\n- [基于Onedrive和Server搭建下载站/网盘](https://www.mintimate.cn/2020/09/22/oneindex)\n\n教程视频：\n- [8分钟利用OneDrive搭建不限速的OneIndex分享网盘](https://www.bilibili.com/video/BV1ph41197aa)\n\n\n打赏\n- 爱发电：[Mintimate的电圈](https://www.afdian.net/@mintimate/plan)\n\n![](https://cdn.jsdelivr.net/gh/Mintimate/OneindexM/demo/demo.png)\n\n### 特别注意\nOneindexM的默认密码为：**MintimateBlog**\n\n## 修改功能：\n\n### 后台：\n\n- 选择安装世纪互联/国际版（如需修改版本，需要删除config文件夹里的文件后重新进入安装程序）\n- 指定文件夹/全部文件夹，关闭Readme.md、index.html、head.md渲染（如果开启游客离线上传，可以关闭此路径的渲染，避免游客上传会被渲染的文件。）\n\n### 前台\n\n以下功能仅支持nexmoe主题\n- 搜索功能：全局搜索/当前页过滤\n- 文件操作：删除/新建/重命名/剪切/复制/分享等。仅管理员可用\n- 文件上传：4M以下的文件在线上传。url远程上传，仅onedrive个人版支持。aria2离线上传，需自行安装在vps上安装aria2并完成相关配置。\n- 外部视频播放器播放接口。需要安装对应播放器。\n- 管理员登陆后，查看加密文件夹无需密码。\n\n## 更新日志\n- 2021.12.03：修复PHP7.x查询函数警告问题；修复文件过滤、查询出错问题；修复排序不可用问题；移除Jq、Bootstrap；调整部分UI\n- 2021.08.03：修复Cookies循环问题、修复世纪互联版本部分情况不可用问题。\n- 2021.07.01：修复因为Onedrive接口更换，而导致的无法部署。\n- 2021.06.25：更换重写URL服务器。\n\n## 部署网站\n\n网站环境尽量使用Nginx或Apache，配合PHP5.7+版本。\n\n建议参考文章：\n![基于Onedrive和Server搭建下载站/网盘](https://www.mintimate.cn/2020/09/22/oneindex)\n\n\u003chr/\u003e\n\n**以下是上游Readme.md内容**\n\n## 功能\n\n不占用服务器空间，不走服务器流量，  \n\n直接列出 OneDrive 目录，文件直链下载。  \n\n## 使用及免责协议\n\n[使用及免责协议](./使用及免责协议.md)\n\n## 安装运行\n\n### 需求：\n\n1、PHP空间，PHP 5.6+ 需打开curl支持  \n2、OneDrive 账号 (个人、企业版或教育版/工作或学校帐户)  \n3、OneIndex 程序   \n\n### 计划任务  \n\n[可选]**推荐配置**，非必需。后台定时刷新缓存，可增加前台访问的速度。  \n\n```\n# 每小时刷新一次token\n0 * * * * /具体路径/php /程序具体路径/one.php token:refresh\n\n# 每十分钟后台刷新一遍缓存\n*/10 * * * * /具体路径/php /程序具体路径/one.php cache:refresh\n```\n\n### Docker 安装运行\n\n- 请参考[TimeBye/oneindex](https://github.com/TimeBye/oneindex)\n\n## 特殊文件实现功能  \n\n` README.md `、`HEAD.md` 、 `.password`特殊文件使用  \n\n可以参考[https://github.com/donwa/oneindex/tree/files](https://github.com/donwa/oneindex/tree/files)  \n\n**在文件夹底部添加说明:**  \n\n\u003e在 OneDrive 的文件夹中添加` README.md `文件，使用 Markdown 语法。  \n\n**在文件夹头部添加说明:**  \n\n\u003e在 OneDrive 的文件夹中添加`HEAD.md` 文件，使用 Markdown 语法。  \n\n**加密文件夹:**  \n\n\u003e在 OneDrive 的文件夹中添加`.password`文件，填入密码，密码不能为空。  \n\n**直接输出网页:**  \n\n\u003e在 OneDrive 的文件夹中添加`index.html` 文件，程序会直接输出网页而不列目录。  \n\u003e配合 文件展示设置-直接输出 效果更佳。  \n\n## 命令行功能  \n\n仅能在PHP CLI模式下运行  \n\n**清除缓存:**  \n\n```\nphp one.php cache:clear\n```\n\n**刷新缓存:**  \n\n```\nphp one.php cache:refresh\n```\n\n**刷新令牌:**  \n\n```\nphp one.php token:refresh\n```\n\n**上传文件:**  \n\n```\nphp one.php upload:file 本地文件 [OneDrive文件]\n```\n\n**上传文件夹:**  \n\n```\nphp one.php upload:folder 本地文件夹 [OneDrive文件夹]\n```\n\n例如：  \n\n```\n//上传demo.zip 到OneDrive 根目录  \nphp one.php upload:file demo.zip  \n\n//上传demo.zip 到OneDrive /test/目录  \nphp one.php upload:file demo.zip /test/  \n\n//上传demo.zip 到OneDrive /test/目录并将其命名为 d.zip  \nphp one.php upload:file demo.zip /test/d.zip  \n\n//上传up/ 到OneDrive /test/ 目录  \nphp one.php upload:file up/ /test/\n```\n\n## 使用Aria2\n\nNginx添加反向代理\n\n```\nlocation /jsonrpc {\n        proxy_pass http://localhost:6800/jsonrpc;\n        proxy_redirect off;\n        proxy_set_header        X-Real-IP       $remote_addr;\n        proxy_set_header        X-Forwarded-For\n        $proxy_add_x_forwarded_for;\n        proxy_set_header Host $host;\n\t}\n```\n\nnginx会监听发送给`http://yoursite/jsonrpc`的消息，然后将他转发给`http:localhost:6800/jsonrpc`，相当于你在yaaw中设置rpc时，只需要将其设置为`http://yoursite/jsonrpc`或者`https://yoursite/jsonrpc`,省略的端口信息为http对应80,https对应443，这些端口浏览器会自动转发，不用在设置中指定。如果你设置了反向代理，那么使用前台yaaw时，就不用在做rpc设置了。否则你需要去重新设置。\n\n![](https://i.loli.net/2020/06/25/9cY2PiBr6usqXen.png)\n\n**关闭aria2远程RPC**\n\n仅vps本地也就是nginx转发的请求能到达6800。其他主机不能访问6800端口。\n\n```shell\nvim /root/.aria2c/aria2.conf\n```\n\n修改aria2配置内容\n\n```\n# 启用RPC, 默认:false\nenable-rpc=true\n# 接受所有远程请求, 默认:false\nrpc-allow-origin-all=false\n# 允许外部访问, 默认:false\nrpc-listen-all=false\n# RPC监听端口, 端口被占用时可以修改, 默认:6800\nrpc-listen-port=6800\n```\n\n\u003e 请注意，关闭远程请求并不能阻止其他主机向aria2发送请求，在不设置token时，任何人都可以通过直接向`http://yoursite/jsonrpc`这个地址发送请求连接aria2。如果你开启游客离线下载可以这么设置。如果你不希望有人通过其他aria2前端连接你的aria2，请你务必设置token，但是这样做，你也必须在使用的时候修改rpc设置，好在，第一次修改设置后，之后浏览器都会记住这个设置。\n\n\u003e 博客：https://sci.ci\n\u003e\n\u003e 如果应用有bug，或者你有好的修改建议，可以通过邮箱联系我：im@xieqifei.com\n\n## 参考资料\n\n《[github YAAW项目](https://github.com/binux/yaaw)》\n\n《[Issue：一旦使用HTTPS协议就无法连接](https://github.com/mayswind/AriaNg/issues/62)》\n\n《[Nginx 反向代理 Aria2 JSONRPC](https://kenvix.com/post/nginx-proxy-aria2/)》\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmintimate%2Foneindexm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmintimate%2Foneindexm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmintimate%2Foneindexm/lists"}