diff --git a/bin/linux-amd64 b/bin/linux-amd64 new file mode 100755 index 0000000..6e35196 Binary files /dev/null and b/bin/linux-amd64 differ diff --git a/systemd/caddy@.service b/systemd/caddy@.service index 03195d8..5bec525 100644 --- a/systemd/caddy@.service +++ b/systemd/caddy@.service @@ -10,6 +10,7 @@ # Caddyfile next time the service is restarted. If you intend to # use Caddy's API to configure it, add the --resume flag to the # `caddy run` command or use the caddy-api.service file instead. +# use sed to get caddy directory at install [Unit] Description=Caddy @@ -17,12 +18,13 @@ Documentation=https://caddyserver.com/docs/ After=network.target [Service] +# base directory must be hard coded User=caddy Group=caddy -EnvironmentFile=/opt/caddy/env/AWS WorkingDirectory=/opt/caddy -ExecStart=/opt/caddy/caddy run --environ --config /opt/caddy/conf/%i.conf --adapter=caddyfile -ExecReload=/opt/caddy/caddy reload --config /opt/caddy/conf/%.conf --adapter=caddyfile +ExecStart= + +ExecReload=/opt/caddy/scripts/caddy reload --config /opt/caddy/conf/%.conf --adapter=caddyfile TimeoutStopSec=5s LimitNOFILE=1048576 LimitNPROC=512 diff --git a/systemd/install b/systemd/install old mode 100644 new mode 100755 diff --git a/systemd/log b/systemd/log old mode 100644 new mode 100755 diff --git a/systemd/persist b/systemd/persist old mode 100644 new mode 100755 diff --git a/systemd/start b/systemd/start old mode 100644 new mode 100755 diff --git a/systemd/stop b/systemd/stop old mode 100644 new mode 100755