mholt / dhall-adapter

Configure Caddy with Dhall

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dhall Config Adapter for Caddy

This Caddy plugin lets you configure Caddy with the Dhall configuration language.

The result of evaluating your Dhall document must be a valid Caddy JSON config.

Config adapter name: dhall

Installation

You can select this plugin on Caddy's download page.

Or, you can plug it in by building Caddy yourself with xcaddy:

$ xcaddy build --with github.com/mholt/dhall-adapter

Usage

Using this config adapter is the same as any other:

$ caddy run --config caddy.dhall --adapter dhall

The key is to specify --adapter dhall on the command line or, if using Caddy's config API, Content-Type: application/dhall.

About

Configure Caddy with Dhall

License:Apache License 2.0


Languages

Language:Go 100.0%