Storage on GitHub for Ghost. Used for ghost-storage-github Docker image
Add the following to your configuration file. Replace values accordingly.
Example:
"storage": {
"active": "ghost-github",
"ghost-github": {
"type": "token",
"user": "<username>",
"token": "<token>",
"repo": "<repo>",
"branch": "master",
"baseUrl": "https://cdn.leon.af",
"format": "{yyyy}/{mm}/{dd}/{name}-{uuid}-{timestamp}-{random}{ext}",
"path": "/"
}
}
- As long as you have access to the user/repo,
user
does not have to match the user token is generated for. baseUrl
(optional): Add the base URL for the github pages to use the baseUrl instead of raw.github.com URLs
- Create a new personal token here.
- Select 'repo' (which will select everything under
repo
), as ghost-github will need access to your repository. - Copy the token that shows up upon successful creation, and paste that into the
token
field of ghost-github's configuration.
https://github.com/ifvictr/ghost-github