https://github.com/caddyserver/pkl-adapter
Configure Caddy with Pkl format
https://github.com/caddyserver/pkl-adapter
Last synced: about 1 year ago
JSON representation
Configure Caddy with Pkl format
- Host: GitHub
- URL: https://github.com/caddyserver/pkl-adapter
- Owner: caddyserver
- License: apache-2.0
- Created: 2024-02-13T21:15:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-13T23:34:24.000Z (over 2 years ago)
- Last Synced: 2024-03-20T03:20:46.037Z (over 2 years ago)
- Language: Go
- Size: 12.7 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Pkl Config Adapter for Caddy
================================
This plugin allows you to use [Pkl](https://pkl-lang.org) to configure Caddy.
**REQUIREMENTS:** This package uses Apple's official Go bindings, which spawns a child process, so the `pkl` command must be [installed](https://pkl-lang.org/go/current/quickstart.html) on your system.
## Install
Install with [xcaddy](https://github.com/caddyserver/xcaddy).
```
xcaddy build \
--with github.com/caddyserver/pkl-adapter
```
## Usage
Specify with the `--adapter` flag for `caddy run`.
```
caddy run --config /path/to/pkl/config.pkl --adapter pkl
```