Skip to content

This is a forked version of Cole Lyman's gozette - a Micropub server written in Go

License

Notifications You must be signed in to change notification settings

hsinhaoyu/gozette-hhyu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gozette

About

This is a forked version of Cole Lyman’s gozette - a Micropub server written in Go, primarily designed for static sites. I slightly modified it for my needs. See this tutorial about what I did. The following is from README.org of the original version.

Set your GitHub API token in the `Environment:` section of `template.yaml`. Remember that after the function has been deployed to AWS Lambda, remove it from `template.yaml`. If the token is not removed before this repo is pushed to GitHub, GitHub will revoke this token.

About - original

gozette was designed with static sites in mind (specifically sites generated using Hugo). However, in principle gozette can be extended to other static site generators. gozette can be run using AWS Lambda serverless functions.

This is still in alpha, but I am dogfooding gozette on my own site at colelyman.com.

How it works

A Micropub server accepts requests from Micropub clients that allow you to publish posts (and other types of content such as likes or reposts). When gozette receives a Micropub request, it first authenticates via IndieAuth, then if the user making the request is authorized a new file will be created and committed to the website’s repository. Once this commit is pushed to the repository, a new build is triggered and the new Micropub post is published.

This setup requires that the following environment variables are set:

REPOSITORY_URL
the repository where the site resides, e.g. Colelyman/colelyman-hugo (this assumes that the repository is on Github)
BRANCH
this is the branch of the site’s repository that should be updated, e.g. heads/master
GIT_API_TOKEN
a token generated to allow push access to the Github repository, generate one here

My Configuration

I have colelyman.com (source: Colelyman/colelyman-hugo) hosted on Netlify and gozette is running as an AWS Lambda function via Netlify.

About

This is a forked version of Cole Lyman's gozette - a Micropub server written in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages