{"id":28958639,"url":"https://github.com/co2f2e/file-browser","last_synced_at":"2025-06-23T23:02:09.335Z","repository":{"id":281155347,"uuid":"944379349","full_name":"co2f2e/file-browser","owner":"co2f2e","description":"Quickly use FileBrowser with a script and Nginx.","archived":false,"fork":false,"pushed_at":"2025-06-19T00:50:39.000Z","size":110,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-19T01:34:03.622Z","etag":null,"topics":["filebrowser","filemanager","linux","shell-scripts","web"],"latest_commit_sha":null,"homepage":"https://github.com/filebrowser/filebrowser","language":"Shell","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/co2f2e.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,"zenodo":null}},"created_at":"2025-03-07T08:46:36.000Z","updated_at":"2025-06-19T00:50:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"c059b225-045c-4c72-b684-649d0c31e6ad","html_url":"https://github.com/co2f2e/file-browser","commit_stats":null,"previous_names":["co2f2e/filebrowser","co2f2e/file-browser"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/co2f2e/file-browser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co2f2e%2Ffile-browser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co2f2e%2Ffile-browser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co2f2e%2Ffile-browser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co2f2e%2Ffile-browser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/co2f2e","download_url":"https://codeload.github.com/co2f2e/file-browser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co2f2e%2Ffile-browser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261571302,"owners_count":23178762,"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":["filebrowser","filemanager","linux","shell-scripts","web"],"created_at":"2025-06-23T23:01:06.133Z","updated_at":"2025-06-23T23:02:09.328Z","avatar_url":"https://github.com/co2f2e.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  file-browser一键安装脚本\n\u003c/h1\u003e\nfile-browser是一个开源的文件管理系统，主要用于提供一个简单、直观的 Web 界面，方便用户管理文件。它允许用户通过 Web 浏览器访问、上传、下载、编辑文件，还提供了文件共享、权限管理等功能。\n\n\u003chr\u003e\n\n### 安装\n* 第一个参数username设置为你想注册的用户名，只能是纯英文或英文加数字\n* 第二个参数port设置为一个端口号，记得NGINX中配置为相应的端口号\n```bash\nbash \u003c(curl -Ls https://raw.githubusercontent.com/co2f2e/file-browser/main/bash/install_filebrowser.sh) username 8088\n```\n\n### 卸载\n```bash\nbash \u003c(curl -Ls https://raw.githubusercontent.com/co2f2e/file-browser/main/bash/uninstall_filebrowser.sh)\n```\n\n### NGINX配置\n```bash\nlocation ^~ /files/ {\n        proxy_pass  http://127.0.0.1:8088/;\n        proxy_set_header Host $host;\n        proxy_set_header X-Real-IP $remote_addr;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n        client_max_body_size 2G; #设置单个上传文件最大限制\n        proxy_buffers 4 8k; #4个8KB的缓冲区\n        proxy_busy_buffers_size 8k; #允许最多使用8KB的内存\n        sendfile on; #启用 sendfile 提高文件传输性能\n        tcp_nopush on; #优化大文件传输\n    }\n```\n### 服务管理命令\n| 操作         | 命令                                                        |\n|--------------|-------------------------------------------------------------|\n| 启动服务     | ```sudo systemctl start filebrowser```                      |\n| 停止服务     | ```sudo systemctl stop filebrowser```                       |\n| 重启服务     | ```sudo systemctl restart filebrowser```                    |\n| 查看状态     | ```sudo systemctl status filebrowser```                     |\n| 查看日志     | ```sudo journalctl -u filebrowser -f```                     |\n| 开机自启动   | ```sudo systemctl enable filebrowser```                     |\n| 关闭开机启动 | ```sudo systemctl disable filebrowser```                    |\n\n### 环境\n* Debian12\n* NGINX\n* SSL\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fco2f2e%2Ffile-browser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fco2f2e%2Ffile-browser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fco2f2e%2Ffile-browser/lists"}