0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-01-06 22:40:31 -05:00

Init switch from HOME to Caddy (#1272)

* INIT-systemd use CADDYPATH instatt of HOME

* INIT-upstart use CADDYPATH instatt of HOME

* INIT-upstart use CADDYPATH instatt of HOME

* INIT-upstart use CADDYPATH instatt of HOME
This commit is contained in:
Geno 2016-11-23 22:12:19 +01:00 committed by Matt Holt
parent 9d398adf5d
commit 7dc23b18ae
4 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,7 @@ User=www-data
Group=www-data
; Letsencrypt-issued certificates will be written to this directory.
Environment=HOME=/etc/ssl/caddy
Environment=CADDYPATH=/etc/ssl/caddy
; Always set "-root" to something safe in case it gets forgotten in the Caddyfile.
ExecStart=/usr/local/bin/caddy -log stdout -agree=true -conf=/etc/caddy/Caddyfile -root=/var/tmp

View file

@ -14,7 +14,7 @@ respawn limit 10 5
reload signal SIGUSR1
# Let's Encrypt certificates will be written to this directory.
env HOME=/etc/caddy
env CADDYPATH =/etc/caddy
limit nofile 1048576 1048576

View file

@ -17,7 +17,7 @@ respawn limit 10 5
reload signal SIGUSR1
# Let's Encrypt certificates will be written to this directory.
env HOME=/etc/caddy
env CADDYPATH=/etc/caddy
limit nofile 1048576 1048576

View file

@ -15,7 +15,7 @@ respawn limit 10 5
#reload signal SIGUSR1
# Let's Encrypt certificates will be written to this directory.
env HOME=/etc/caddy
env CADDYPATH=/etc/caddy
limit nofile 1048576 1048576