Skip to content

lumeland/caddy-lume

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
    }

    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

About

Caddy module to reverse proxy Lume

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages