This is my first reverse proxy in my life and I’m struggling to configure caddy2.
I installed Ubuntu 18.04LTS, after that I get the zip from github with a curl command. I extract it, move it to my path (sudo mv caddy /usr/bin/), I create a group caddy, I make a user name caddy and that’s all.
After this steps I’m lost. I don’t understand what I have to do anymore.
I need to create a file?
Are you having trouble figuring out which service file to choose? If you don’t know the difference between the two, the correct answer for you is likely to be caddy.service (for if you configure Caddy with a file).
I create a file caddy.service in /lib/systemd/system/.
The caddy file is in /usr/bin/
I get this error when I’m running this command:vp@proxy:~$ systemctl status caddy
● caddy.service - Caddy
Loaded: loaded (/lib/systemd/system/caddy.service; enabled; vendor preset: en
Active: failed (Result: exit-code) since Wed 2020-04-15 14:55:51 UTC; 8s ago
Docs: Welcome — Caddy Documentation
Process: 1426 ExecStart=/usr/bin/caddy run --environ --config /etc/caddy/Caddy
Main PID: 1426 (code=exited, status=1/FAILURE)
Also, can you post the output from: journalctl -b -u caddy.service --no-pager
The “caddy file”? Are you referring to the Caddyfile (text configuration, which should go in /etc) or are you referring to the caddy binary (which should go in your path, such as /usr/bin)?
My hunch right now is that if you’ve put your Caddyfile configuration in /usr/bin, that’ll be your issue… Depending of course on the service configuration you’re using.