{"id":16241478,"url":"https://github.com/refinec/node-filemanager","last_synced_at":"2025-07-10T16:08:57.811Z","repository":{"id":45374964,"uuid":"355198379","full_name":"refinec/node-filemanager","owner":"refinec","description":"基于Aliyun OSS对象存储的Node.js网盘管理后台","archived":false,"fork":false,"pushed_at":"2021-04-11T03:11:55.000Z","size":35,"stargazers_count":13,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-11T14:07:37.863Z","etag":null,"topics":["aliyun-oss","expressjs","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/refinec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-06T13:27:49.000Z","updated_at":"2024-08-27T03:04:42.000Z","dependencies_parsed_at":"2022-09-10T02:01:32.154Z","dependency_job_id":null,"html_url":"https://github.com/refinec/node-filemanager","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.3571428571428571,"last_synced_commit":"17ee937d62fcff7f4f7fb51479e3c26aeae0b482"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refinec%2Fnode-filemanager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refinec%2Fnode-filemanager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refinec%2Fnode-filemanager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refinec%2Fnode-filemanager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/refinec","download_url":"https://codeload.github.com/refinec/node-filemanager/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221729375,"owners_count":16871004,"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":["aliyun-oss","expressjs","nodejs"],"created_at":"2024-10-10T14:07:45.487Z","updated_at":"2024-10-27T20:25:45.906Z","avatar_url":"https://github.com/refinec.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-filemanager\n\n## Introduction\n\n这是基于Aliyun OSS对象存储的Node.js网盘管理服务器\n\n前端使用Vue.js、ElementUI：https://github.com/refinec/vue-filemanager\n\n## Installation\n\n```\nnpm install node-oss-filemanager --save\n```\n\n## Usage\n\n使用Node.js的express框架\n\n```javascript\nconst express = require(\"express\");\nconst app = express();\nconst larfOss = require(\"./node-oss-filemanager\");\n\nconst ossOptions = {\n    accesskey: '', //通过阿里云控制台创建的AccessKey\n    accessSecret: '', //通过阿里云控制台创建的AccessSecret\n    bucket: [], //通过控制台或PutBucket创建的bucket\n    region: '', //bucket所在的区域， 如oss-cn-hangzhou。\n    internal: false, //是否使用阿里云内网访问，默认false。比如通过ECS访问OSS，则设置为true，采用internal的endpoint可节约费用。\n    cname: false, //是否支持上传自定义域名，默认false。如果cname为true，endpoint传入自定义域名时，自定义域名需要先同bucket进行绑定。\n    secure: true, //(secure: true)则使用HTTPS，(secure: false)则使用HTTP\n    endpoint: '', //OSS外网域名\n    internalEndpoint: '' //OSS内网域名，可省略则默认为OSS外网域名\n}\n\napp.use('/', larfOss(ossOptions));\napp.listen(process.env.PORT || 3000, () =\u003e {\n    console.log(\"http://localhost:3000\");\n});\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frefinec%2Fnode-filemanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frefinec%2Fnode-filemanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frefinec%2Fnode-filemanager/lists"}