Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Little bit more documentation? #1

Open
StevenACoffman opened this issue Apr 12, 2020 · 7 comments
Open

Little bit more documentation? #1

StevenACoffman opened this issue Apr 12, 2020 · 7 comments
Labels
documentation Improvements or additions to documentation

Comments

@StevenACoffman
Copy link

  • How do you install it?
  • How do you plug it in?
  • Do you have an example CUE config for Caddy?
@mholt
Copy link
Member

mholt commented Apr 13, 2020

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

  1. Unfortunately no, I don't actually know the Cue language 😅 I think @mohammed90 has a schema he was working on (but maintaining that might be a bit burdensome for anyone 😬 ) -- basically, any cue document that translates to Caddy JSON should do the trick.

@mholt mholt added the documentation Improvements or additions to documentation label Apr 13, 2020
@gedw99
Copy link

gedw99 commented Jan 31, 2022

Is this active @mholt

i started using CueLang recently as it’s quite a useful way for mass management infrastructure

@mholt
Copy link
Member

mholt commented Jan 31, 2022

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!

@StevenACoffman
Copy link
Author

@mohammed90 I hunted around a bit and I couldn't find your CUE schema. Is that public somewhere?

@gedw99
Copy link

gedw99 commented Feb 1, 2022

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.

@mohammed90
Copy link
Member

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.

@gedw99
Copy link

gedw99 commented Feb 1, 2022

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants