stuff/containers/Bastille/Caddy.md
Moni Ghaoui 47aa1a3484 FC
2025-04-14 19:51:40 +02:00

42 lines
No EOL
691 B
Markdown

# Caddy
```sh
bastille create caddy 14.2-RELEASE 192.168.1.200 genet0
bastille pkg caddy bootstrap
bastille pkg caddy update
bastille pkg caddy install -y caddy
```
After installing Caddy you see some instructions. To reshow them:
```sh
bastille pkg caddy info -D caddy
```
Edit the Caddyfile:
```sh
bastille pkg caddy install -y tmux neovim
bastille console caddy
tmux
nvim /usr/local/etc/caddy/Caddyfile
```
Start the service.
```sh
bastille service caddy caddy enable
bastille service caddy caddy start
```
See the logs:
```sh
bastille cmd caddy cat /var/log/caddy/caddy.log
```
To quickly look at the caddyfile:
```sh
bastille cmd caddy cat /usr/local/etc/caddy/Caddyfile
```