{"id":21156894,"url":"https://github.com/lkiarest/index-generator","last_synced_at":"2025-10-03T16:23:23.797Z","repository":{"id":149611300,"uuid":"291875450","full_name":"lkiarest/index-generator","owner":"lkiarest","description":"在服务器上生成静态文件目录索引，灵活控制索引列表","archived":false,"fork":false,"pushed_at":"2021-01-25T01:43:09.000Z","size":6748,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T08:45:09.203Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/lkiarest.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-01T02:28:59.000Z","updated_at":"2021-01-25T01:43:11.000Z","dependencies_parsed_at":"2023-04-25T11:32:39.815Z","dependency_job_id":null,"html_url":"https://github.com/lkiarest/index-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkiarest%2Findex-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkiarest%2Findex-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkiarest%2Findex-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkiarest%2Findex-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lkiarest","download_url":"https://codeload.github.com/lkiarest/index-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243598657,"owners_count":20316997,"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-20T11:54:22.515Z","updated_at":"2025-10-03T16:23:18.749Z","avatar_url":"https://github.com/lkiarest.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# index-generator\n在服务器上生成静态文件目录索引，灵活控制索引列表\n\n### 环境要求\n\n服务器需要安装 nodejs。\n\n### 启动服务\n\n首先需要上传源码中的 js 文件到服务器，拷贝到需要索引的根目录中，然后使用 node 启动：\n\n```\nnode server.js # 测试服务\n\nnohup node server.js \u0026 # 后台进程\n\npm2 start server.js # 使用 pm2 管理服务\n```\n\n### 特殊场景\n\n如果服务器位于内网，只安装了 node，无法执行 npm 安装其他工具包，则需要本地打包之后上传到服务器执行：\n\n```\nyarn build # 会生成 app.js 文件，上传此文件到服务器\nnode app.js # 各种启动方式同上\n```\n\n### 创建/更新索引\n\n```\ncurl http://host:5001/update\n```\n\n### 清除生成的索引文件，恢复默认状态\n\n```\ncurl http://host:5001/clear\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flkiarest%2Findex-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flkiarest%2Findex-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flkiarest%2Findex-generator/lists"}