gemini-ghost

command module
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

README

A Gemini dynamic server that serves content from the Content API of a Ghost installation. It fetches all the posts, and serves them by converting the HTML content into Gemini.

The content is cached in memory, and is refreshed every hour.

HTML-to-GMI conversion is done with github.com/LukeEmmet/html2gemini

Installation

If you have go installed and a GOPATH configured, then clone the repo and run go install:

go install github.com/JeanRibes/gemini-ghost@master

With Docker

mkdir certs
cd certs
openssl req -new -x509 -days 3650 -nodes -out crt.pem -keyout key.pem
cd ..
docker run -d -p 1965:1965 -e URL="http://localhost:2368/ghost/api/v4/content" -e API_KEY="<your ghost content api key here>" -v $(pwd)/certs:/certs --name gemini-ghost ghcr.io/jeanribes/gemini-ghost:master 

Configuration

Usage of ./gemini-ghost:
  -crt string
        cert filename (default "./certs/crt.pem")
  -ghost-key string
        Ghost Content API Key (default "a513a3dc949855fb654a545bd7")
  -ghost-url string
        Ghost Content API Url (default "http://localhost:2368/ghost/api/v4/content")
  -hostname string
        hostname (default "localhost")
  -key string
        key filename (default "./certs/key.pem")
  -port int
        port number (default 1965)

TODO

utiliser la navigation http://localhost:2368/ghost/api/v4/content/settings/?key=a513a3dc949855fb654a545bd7&limit=3&page=1

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL