Open StevenACoffman opened 4 years ago
Hi, yeah -- sorry. Just whipped it up real quick. Docs will improve!
To answer your questions quickly though:
1 and 2. You can use xcaddy build
to plug it in and get a caddy binary with it plugged in. Then use the adapter like any other adapter: caddy [run|start] --config caddy.cue --adapter cue
Is this active @mholt
i started using CueLang recently as it’s quite a useful way for mass management infrastructure
I don't use CUE personally, I just made this to demonstrate config adapters. It's pretty simple though, can't imagine too much maintenance is needed. Feel free to submit PRs if necessary!
@mohammed90 I hunted around a bit and I couldn't find your CUE schema. Is that public somewhere?
BTW you can build a GUI off the caddy config with Cue.
For example kubevela is using Cue to enable K8 and Terraform based management, and it has a GUI that is generated from the Cue Defintiation. https://kubevela.io/docs/platform-engineers/openapi-v3-json-schema#render-form
The more i use Cue the more i see it solving many transient problems with IT systems.
--
I woudl really love to get Cue working with Caddy, as Caddy is so nice and light.
The draft schema is in PR #2. I haven't touched CUE since then so I'm not sure if any has changed. Help is appreciated! I'm swamped right now.
thanks @mohammed90
I am also swamped too. I will try to swing back onto this if someone else does not pick it up in the meantime. I really want to use cue with caddy !