Skip to content

A Micropub server written in Go, primarily designed for static sites.

License

Notifications You must be signed in to change notification settings

Colelyman/gozette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gozette

A Micropub server written in Go, primarily designed for static sites.

About

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

A Micropub server written in Go, primarily designed for static sites.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages