docs: colours
This commit is contained in:
parent
c93432667d
commit
48abf9ed05
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user