Skip to content

Instantly share code, notes, and snippets.

@hacker1024
Last active October 1, 2020 05:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hacker1024/a0c30df69f74a60473ee3d33f9c84832 to your computer and use it in GitHub Desktop.
Save hacker1024/a0c30df69f74a60473ee3d33f9c84832 to your computer and use it in GitHub Desktop.
Caddy 2 systemd service override to load a JSON configuration file
[Service]
ExecStart=
ExecStart=/usr/bin/caddy run --environ --config /etc/caddy/Caddyfile.json
ExecReload=
ExecReload=/usr/bin/caddy reload --config /etc/caddy/Caddyfile.json
@hacker1024
Copy link
Author

This file belongs in /etc/systemd/system/caddy.service.d/override.conf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment