{"id":20542194,"url":"https://github.com/weivea/qiniu-tool","last_synced_at":"2026-01-04T20:04:37.951Z","repository":{"id":83302542,"uuid":"57960223","full_name":"weivea/qiniu-tool","owner":"weivea","description":null,"archived":false,"fork":false,"pushed_at":"2016-05-03T10:18:12.000Z","size":187,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T10:07:53.384Z","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/weivea.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":"2016-05-03T10:12:38.000Z","updated_at":"2017-07-31T02:43:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"385f98da-3ebd-49a3-b252-9347c9cce0d4","html_url":"https://github.com/weivea/qiniu-tool","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/weivea%2Fqiniu-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weivea%2Fqiniu-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weivea%2Fqiniu-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weivea%2Fqiniu-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weivea","download_url":"https://codeload.github.com/weivea/qiniu-tool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244812029,"owners_count":20514393,"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-16T01:29:45.262Z","updated_at":"2026-01-04T20:04:37.889Z","avatar_url":"https://github.com/weivea.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# qiniu-tool\n基于七牛云的静态资源管理，包含第三方上传接口\n基于mongodb\n(就像百度云哟)\n运行前请先安装\u003ca href=\"https://www.mongodb.org/\"\u003emongodb\u003c/a\u003e\n\n1. 注册\u003ca href=\"http://www.qiniu.com/\"\u003e七牛云\u003c/a\u003e帐号;\n2. 获得AccessKey/SecretKey,创建空间，得到bucketName,和空间域名\n3. 修改qiniuTool/control/config.js中的相关配置。\n```javascript\nconfig = {\n\n\n    'ACCESS_KEY': 'nY-CzS3Ao9T1vZ',\n    'SECRET_KEY': '-IetaJx_be2t-C',\u2028\n    'Bucket':['weivea'，'weivea2'，'weivea3'],//空间名称,默认取第一个\u2028\n    'Domain': {\u2028//空间域名\n        'weivea':'http://7xot2g.com1.z0.glb.clouddn.com/'\n        'weivea2':'http://7xot2g.com1.z0.glb.clouddn.com2/'\n        'weivea3':'http://7xot2g.com1.z0.glb.clouddn.com3/'\n    \u2028},\n\n\n    'keyRoot':'/webClient',//根目录名称，建议不要太长，太长有坑\n    'defaultFolderId':'',//保持为空就好\n\n\n    //数据库\n    mongodbUrl:'mongodb://localhost:27017/weiveaCloud',\n\n    //session基于mongodb\n    sessionHost:'localhost',\n    sessionPort:'27017',\n    sessionDbName:'weiveaCloudSession',\n\n\n    //默认的第一个用户\n    firstUser:{\n        name:'weivea',\n        pass:'weivea'\n    },\n\n    //webPort\n    hostPort:3000\n};\n\nmodule.exports=config;\n```\n\n4. 程序启动\n\n```shell\n#运行七牛云工具\ncd qiniuTool\nnpm install\nnode index.js\n\n\n#运行第三方上传测试\ncd thirdDeam\nnpm install\nnode index.js\n```\n\n第三方接口采用rsa加密\n\n\n***\n20160321:  \n修改程序，使在应用页面端手动上传的文件path与在七牛云上的对应，以保证一些文件群可以更好的已相对路径引用\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweivea%2Fqiniu-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweivea%2Fqiniu-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweivea%2Fqiniu-tool/lists"}