Skip to content

dufemeng/ghost-tencent-cloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tencent Cloud Store for Ghost

ghost是一个很有名的前端cms管理系统,ghost-tencent-cloud主要功能是把ghost服务器的存储图片转移到腾讯云上存储,以缓解服务器的压力。

安装

  • git

    为了替换存储模块,需要做以下几件事情:

    • 在/content下面新建一个文件夹/storage;

    • 把这个仓库里的文件克隆到/storage下面

     cd [path/to/ghost]/content/storage
    
     git clone https://github.com/dufemeng/ghost-tencent-cloud
    
    • 安装依赖包
     cd ghost-tencent-cloud
    
     npm install
    
  • npm

    • 打开新建的那个/storage文件夹,然后:
     npm install ghost-tencent-cloud --save
    

配置

打开根目录下的config.js文件,选择你想要更改的环境,在里面添加一个新的参数storage

storage : {
	active : 'ghost-tencent-cloud',
	'ghost-tencent-cloud' : {
		appId : 'your appId name',
		secretId : 'your secretId',
		sercetKey : 'your sercetKey',
		bucket : 'your bucket name'
	}    

License

LICENSE

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published