Skip to content
This repository was archived by the owner on Nov 26, 2022. It is now read-only.
/ go-caddy Public archive

Go library to list Caddy plugins and build a custom binary with plugins

Notifications You must be signed in to change notification settings

juli3nk/go-caddy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Caddy

Installation

# go get github.com/juli3nk/go-caddy/cmd/caddybuild

Usage

Plugin

To list plugins

# caddybuild plugin ls
NAME                  TYPE
http.upload           Directive
tls.dns.cloudflare    DNS Provider
http.awses            Directive
http.mailout          Directive
...

To get information about one plugin

# caddybuild plugin info http.git
Name: http.git
Type: Directive
Description: The git plugin makes it possible to deploy your site with a simple git push.

The git directive starts a service routine that runs during the lifetime of the server. When the service starts, it clones the repository. While the server is still up, it pulls the latest every so often. You can also set up a webhook to pull immediately after a push. In regular git fashion, a pull only includes changes, so it is very efficient.
Website: https://github.com/abiosoft/caddy-git
Docs: https://github.com/abiosoft/caddy-git/blob/master/README.md

Build

To build a custom binary including plugins follow the steps below or check out the the directory example.

  1. Create a .caddybuild.yml config file
---
plugins:
  - http.git
telemetry: false
  1. Build
# caddybuild build
  1. Test newly built binary
# /tmp/caddy/caddy -version
Caddy v1.0.0 (h1:KI6RPGih2GFzWRPG8s9clKK28Ns4ZlVMKR/v7mxq6+c=)

About

Go library to list Caddy plugins and build a custom binary with plugins

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published