Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 1.75 KB

yeet_serve.md

File metadata and controls

41 lines (33 loc) · 1.75 KB

yeet serve

Serve files with yeet

Options

      --404-fallback string        Redirect any 404 to the provided fallback file
      --404-index                  Redirect any 404 to the index file
      --bot-agents string          Bot User-Agent header regex (default "bot|crawl|spider|external|meta|scrap|archive|discourse")
      --bot-proxy string           Bot proxy URL
      --expiry                     Use cache expiry
      --expiry-interval duration   Interval between cache GC's (default 10m0s)
      --expiry-time duration       Lifetime of a cache entry (default 1h0m0s)
  -h, --help                       help for serve
      --host string                Hostname to bind the webserver
      --index-file string          The directory default index file (default "index.html")
  -p, --paths strings              Paths to serve on the webserver (default [./www])
      --port int                   Port to run the webserver on (default 8080)
      --tls-cert string            TLS Certificate file path
      --tls-key string             TLS Key file path
      --warmup                     Load all files into memory on startup
  -w, --watch                      Watch filesystem for changes

Options inherited from parent commands

      --log string        The log level to output (default "info")
      --log-file string   File to output logs to
      --quiet             Do not log anything to console

SEE ALSO

Auto generated by spf13/cobra on 26-Mar-2023