Added windows service for Caddy with NSSM

devil1591 2016-09-19 21:38:36 +02:00
parent ed32fb301d
commit a67fc54ab3

@ -7,4 +7,14 @@ For example: Ubuntu 16.04, Coreos 1029.0.0, Debian unstable sid (not 8.0), Fedor
### FreeBSD rc.d ### FreeBSD rc.d
Example for an init script on FreeBSD: https://gist.github.com/dprandzioch/f3a0bc4ebde3efd5c2a4 Example for an init script on FreeBSD: https://gist.github.com/dprandzioch/f3a0bc4ebde3efd5c2a4
### Windows
You can use [nssm.cc](https://nssm.cc/) in order to automaticaly lauch, and restart if crashed Caddy.
First download both NSSM and Caddy then extract them to c:\myserver\
Then install Caddy as a service by entering the following commands in your Terminal:
`c:\myserver\nssm.exe install Caddy c:\myserver\caddy.exe`
`c:\myserver\nssm.exe set Caddy AppDirectory C:\myserver\`