AliCloud plugin for nodecloud
$ npm install nodecloud-ali-plugin
Get your AliCloud access tokens here
Make sure you have .nc.config
file in the project root and have nodecloud-core
installed.
Content of .nc.config
file is assumed as the following json structure.
It is an array of supported providers.
name
: Provider name which nodecloud supports.tag
: Name that you will use to load the given provider. It is for your reference in code. It can be anything that you may like.plugin
: Library name which has to be installed before loading a provider.configPath
: An object which contains all the necessary constants
Config file can contain array of objects for all providers and all will be loaded.
Supported values for name
: aws, azure, alicloud, digitalocean, google
const nodeCloudAliCloudPlugin = require('nodecloud-ali-plugin');
const providers = [
{
name: "alicloud",
tag: "alicloud",
plugin: nodeCloudAliCloudPlugin,
configPath: {
AccessKeyId: "YOUR ACCESS KEY ID HERE"
AccessKeySecret: "YOUR ACCESS KEY SECRET HERE",
BucketName: "YOUR BUCKET NAME HERE",
BucketRegion: "YOUR BUCKET REGION HERE"
}
}
];
module.exports = providers;
$ git clone https://github.com/cloudlibz/nodecloud-ali-plugin
$ cd nodecloud-ali-plugin
$ npm link
$ cd .. && mkdir nodecloud-dev && cd nodecloud-dev
$ npm link nodecloud-ali-plugin
$ cd .. && git clone https://github.com/cloudliz/nodecloud
$ cd nodecloud
$ npm link
$ cd nodecloud-dev
$ npm link nodecloud