1.0.3 • Published 2 years ago

ghost-storage-github-jsdelivr v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Ghost adapter for upload to github and get accelerated link.

Adapter Usage

mkdir -p content/adapters/storage/ghost-storage-github-jsdelivr
cp node_modules/ghost-storage-github-jsdelivr/index.js content/adapters/storage/ghost-storage-github-jsdelivr/index.js
{
  "storage": {
    "active": "ghost-storage-github-jsdelivr",
    "ghost-storage-github-jsdelivr": {
      "token": "",
      "owner": "",
      "repos": "",
      "dir": "ghost/",
      "branch": "master",
      "filenameHandler": "date",
      "resolveLink": "cdnLink"
    }
  }
}
KeyTypeDefaultDescription
tokenstringrequired, github token
ownerstringrequired, github username
reposstringrequired, github repos name
dirstringghost/optional, upload directory, empty string means root dir. eg: sub/
branchstringmasteroptional, github repos branch
filenameHandlerstringdateoptional, filename handler. By default will prefix filename with date string. Pass 'hash' to get hashed filename
resolveLinkstringcdnLinkoptional, upload result link. By default is jsdelivr link, pass 'ghLink' to get raw link