How to start Caddy V2 Reverse Proxy as a Windows Service

1. Caddy version (caddy version): Caddy 2

2. How I run Caddy:

I’m running Caddy 2 successfully manually using the CMD steps “run caddy”

a. System environment:

Windows Essential Server

b. Command:

caddy start

c. Service/unit/compose file:

paste full file contents here

d. My complete Caddyfile or JSON config:

{
    email myemail@domain.com
 
}
 
jgcmedia.net {
    
   reverse_proxy http://192.168.1.99:80
 
}

3. The problem I’m having:

4. Error messages and/or full log output:

5. What I already tried:

6. Links to relevant resources:

https://nssm.cc/download

I reviewed these links, but it still wasn’t clear to me on how to make this work. Any assistance is appreciated. Thanks

UPDATE: Solution

I used NSSM following these instructions that I found. Hope it helps others.
Snarebusch comments on DuckDNS, Let's Encrypt, and Windows Server 2016

2 Likes

This topic was automatically closed after 30 days. New replies are no longer allowed.