blog-engine

command module
v0.0.0-...-590ab09 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

README

blog-engine

construction in progress

A primitive and opionated gemini blog engine.

Requirements

  • go
  • openssl or ready SSL certs for your blog domain

Usage

The main idea is to compile blog content into the blog app binary, thanks to go:embed

  1. Clone repo git clone https://github.com/ninedraft/blog-engine.git && cd blog engine;
  2. Add documents to the content dir;
  3. Compile with go build;
  4. Deploy with your method of choice;
  5. Run blog-engine -addr ... -ca-cert ... etc;
  6. Visit gemini://$BLOG_HOST/;

Configuration

CLI flags

  -addr string
    	optional address to serve (default "localhost:1965")
  -ca-cert string
    	certificate file (default "cert.pem")
  -ca-key string
    	certificate key (default "key.pem")
  -host string
    	optional host

Env variables

Metrics

Prometheus metrics are availaible at http://localhost:2112.

Features

  1. Single static binary distribution;
  2. No dynamic filesystem access - only certs are loaded on startup;
  3. Prometheus metrics;

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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