Caddy(8)

✨ caddy-reload ✨

okay bestie, so caddy-reload β€” she lives in the Caddy(8) manual family, and her whole entire job is changing the config of a running Caddy instance. that's it. that's the post. πŸ’…


🌸 SYNOPSIS 🌸

caddy reload --config  [--adapter ] [--address ] [flags]

yes the spacing is a little cursed, no we are not fixing it, it's canon 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

So the vibe is: you hand your already-running Caddy instance a brand new configuration. She takes it, she slays, done. ✨

And ngl, this does the exact same thing as POSTing a document to the /load API endpoint β€” literally identical energy. The difference is just that reload is convenient for simple workflows revolving around config files, iykyk. Like if your whole life is "I have a config file and I want it live," this is your girl. πŸŽ€

Now here's the little detail that matters, so pay attention bestie πŸ‘‘: since the admin endpoint is configurable, where does the endpoint config come from? It checks, in order:

  1. the --address flag, if you actually specified it
  2. otherwise, it's loaded from the given config file
  3. otherwise, the default is just assumed

no cap. that's the priority list. πŸ’–


πŸ’… OPTIONS πŸ’…

  • -a, --adapter="" β€” the name of the config adapter to apply. default is empty string, so no adapter unless you say so ✨
  • --address="" β€” the address of the administration listener, if different from config. default empty πŸ¦‹
  • -c, --config="" β€” the configuration file. this one is REQUIRED bestie, you cannot skip it, she will simply not work 😭
  • -f, --force[=false] β€” force the config reload even if it is the same. defaults to false, as it should πŸ’€
  • -h, --help[=false] β€” help for reload. defaults to false 🌈

πŸŽ€ SEE ALSO πŸŽ€

  • caddy(8) β€” the main character, go read her too 🫢

πŸ“œ HISTORY πŸ“œ

  • 1-Jan-0001 β€” auto generated by spf13/cobra

ok so real talk, if you're about to reload with a config that's the same as what's already running, nothing changes unless you pass -f / --force. that's the whole point of that flag, don't come for me πŸ’–

and that's the page, bestie!! 🌸 this absolute icon of a doc was auto generated by spf13/cobra, stamped Jan 0001, and filed under the Caddy(8) manual. periodt. πŸ‘‘βœ¨

πŸ“¦ where this page comes from