mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-17 16:25:37 +03: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:
parent
9d398adf5d
commit
7dc23b18ae
4 changed files with 4 additions and 4 deletions
2
dist/init/linux-systemd/caddy.service
vendored
2
dist/init/linux-systemd/caddy.service
vendored
|
@ -12,7 +12,7 @@ User=www-data
|
||||||
Group=www-data
|
Group=www-data
|
||||||
|
|
||||||
; Letsencrypt-issued certificates will be written to this directory.
|
; 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.
|
; 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
|
ExecStart=/usr/local/bin/caddy -log stdout -agree=true -conf=/etc/caddy/Caddyfile -root=/var/tmp
|
||||||
|
|
2
dist/init/linux-upstart/caddy.conf
vendored
2
dist/init/linux-upstart/caddy.conf
vendored
|
@ -14,7 +14,7 @@ respawn limit 10 5
|
||||||
reload signal SIGUSR1
|
reload signal SIGUSR1
|
||||||
|
|
||||||
# Let's Encrypt certificates will be written to this directory.
|
# Let's Encrypt certificates will be written to this directory.
|
||||||
env HOME=/etc/caddy
|
env CADDYPATH =/etc/caddy
|
||||||
|
|
||||||
limit nofile 1048576 1048576
|
limit nofile 1048576 1048576
|
||||||
|
|
||||||
|
|
2
dist/init/linux-upstart/caddy.conf.centos-6
vendored
2
dist/init/linux-upstart/caddy.conf.centos-6
vendored
|
@ -17,7 +17,7 @@ respawn limit 10 5
|
||||||
reload signal SIGUSR1
|
reload signal SIGUSR1
|
||||||
|
|
||||||
# Let's Encrypt certificates will be written to this directory.
|
# Let's Encrypt certificates will be written to this directory.
|
||||||
env HOME=/etc/caddy
|
env CADDYPATH=/etc/caddy
|
||||||
|
|
||||||
limit nofile 1048576 1048576
|
limit nofile 1048576 1048576
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ respawn limit 10 5
|
||||||
#reload signal SIGUSR1
|
#reload signal SIGUSR1
|
||||||
|
|
||||||
# Let's Encrypt certificates will be written to this directory.
|
# Let's Encrypt certificates will be written to this directory.
|
||||||
env HOME=/etc/caddy
|
env CADDYPATH=/etc/caddy
|
||||||
|
|
||||||
limit nofile 1048576 1048576
|
limit nofile 1048576 1048576
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue