2
0
Fork
You've already forked caddy-lume
0
Caddy module to reverse proxy Lume
  • Go 100%
2026年07月06日 01:29:37 +02:00
.github/workflows mirror to codeberg 2026年06月22日 00:29:24 +02:00
.gitignore new version 2026年03月21日 15:29:21 +01:00
CHANGELOG.md added deno_upgrade option 2026年07月06日 01:29:37 +02:00
go.mod updated dependencies 2026年05月26日 21:24:22 +02:00
go.sum updated dependencies 2026年05月26日 21:24:22 +02:00
LICENSE Add MIT License to the project 2025年12月27日 18:29:35 +01:00
lume.go added deno_upgrade option 2026年07月06日 01:29:37 +02:00
README.md added deno_upgrade option 2026年07月06日 01:29:37 +02:00
upstream_process.go added deno_upgrade option 2026年07月06日 01:29:37 +02:00

Caddy module for Lume

This is a module for Caddy to have a reverse proxy to Lume and LumeCMS. Configure the Caddyfile like this:

example.com {
 reverse_proxy {
 dynamic lume {
 directory "/path/to/your/lume/site"
 deno_upgrade
 }
 lb_retries 10
 lb_try_interval 2s
 }
}
  • In the first request, it starts Lume using the first available port running the command deno task lume --serve --hostname=localhost --port={port} --location={public_url}.
  • After 2 hours of inactiviy, the process is closed.

Code "inspired" by cweagans/caddy_ondemand_upstreams. Thanks Cameron Eagans!

Configuration

  • directory: Required. The directory of the Lume site to run deno task lume ....
  • deno: Optional. The deno binary path. If this is not set, the module searches for the "deno" executable in the PATH.
  • idle_timeout: Optional. The duration that the process should continue running if no traffic is received. By default is 2h
  • deno_upgrade: Optional. Runs deno upgrade before starting the upstream to upgrade Deno automatically to the latest version.