servers:caddy
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| servers:caddy [2025/08/17 12:52] – removed - external edit (Unknown date) 127.0.0.1 | servers:caddy [2025/08/17 12:52] (current) – ↷ Page moved from terminal:caddy to servers:caddy melo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ===== caddy notes ===== | ||
| + | ==== static site ==== | ||
| + | |||
| + | < | ||
| + | root * "/ | ||
| + | file_server | ||
| + | }</ | ||
| + | |||
| + | ==== file browse ==== | ||
| + | |||
| + | < | ||
| + | root * "/ | ||
| + | file_server browse | ||
| + | }</ | ||
| + | |||
| + | ==== file browse: grid default/ | ||
| + | |||
| + | < | ||
| + | root * "/ | ||
| + | file_server browse | ||
| + | |||
| + | @directories `path(' | ||
| + | redir @directories ? | ||
| + | }</ | ||
| + | | ||
| + | ==== reverse proxy ==== | ||
| + | < | ||
| + | reverse_proxy 192.168.1.123: | ||
| + | }</ | ||
| + | |||
| + | ==== reverse proxy with basic auth ==== | ||
| + | < | ||
| + | reverse_proxy 192.168.1.123: | ||
| + | basicauth /* { | ||
| + | username basicauth_hash | ||
| + | } | ||
| + | |||
| + | }</ | ||
| + | |||
| + | <code bash> | ||
