docs: colours

This commit is contained in:
decentral1se 2024-12-12 16:18:53 +01:00
parent c93432667d
commit 48abf9ed05
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410

View File

@ -8,7 +8,7 @@ Incus dynamic upstreams for Caddy v2+ 🧨
Set the following config on your Incus instance. Set the following config on your Incus instance.
``` ```bash
incus config set <instance-name> user.caddyserver.http.enable=true incus config set <instance-name> user.caddyserver.http.enable=true
incus config set <instance-name> user.caddyserver.http.matchers.host=<domain> incus config set <instance-name> user.caddyserver.http.matchers.host=<domain>
incus config set <instance-name> user.caddyserver.http.upstream.port=<port> incus config set <instance-name> user.caddyserver.http.upstream.port=<port>
@ -16,14 +16,14 @@ incus config set <instance-name> user.caddyserver.http.upstream.port=<port>
Build a fresh caddy with this plugin. Build a fresh caddy with this plugin.
``` ```bash
xcaddy build \ xcaddy build \
--with git.coopcloud.tech/decentral1se/caddy-incus-upstreams --with git.coopcloud.tech/decentral1se/caddy-incus-upstreams
``` ```
Wire up a Caddyfile based on this example. Wire up a Caddyfile based on this example.
``` ```Caddyfile
example.com { example.com {
reverse_proxy { reverse_proxy {
dynamic incus dynamic incus
@ -62,7 +62,7 @@ http://bar.localhost {
Then run commands based on this example. Then run commands based on this example.
``` ```bash
incus launch images:alpine/3.20 foo incus launch images:alpine/3.20 foo
incus config set foo user.caddyserver.http.enable=true incus config set foo user.caddyserver.http.enable=true
incus config set foo user.caddyserver.http.matchers.host=foo.localhost incus config set foo user.caddyserver.http.matchers.host=foo.localhost