1. Caddy version (caddy version
):
2.4.6
2. How I run Caddy:
I’m running it as a service as recommended by the link below fo rManagerIO
a. System environment:
I have a proliant DL180G6 running Truenas V12.0-U6. I have VM’s setup with Ubuntu 18.04.5. One VM has only one purpose in life and that is to host the accounting application named ManagerIO.
b. Command:
This link is what I implemented to setup the application and Caddy service - see the link for ManagerIO below
Paste command here.
c. Service/unit/compose file:
Paste full file contents here.
Make sure backticks stay on their own lines,
and the post looks nice in the preview pane.
d. My complete Caddyfile or JSON config:
The recommended configuration does not use a caddyfile however I would like to.
Paste config here, replacing this text.
Use `caddy fmt` to make it readable.
DO NOT REDACT anything except credentials.
LEAVE DOMAIN NAMES INTACT.
Make sure the backticks stay on their own lines.
3. The problem I’m having:
ManagerIO lets me put image files in their database but they instead recommend keeping image files on a separate server so the database isn’t bloated up.
Their recommended setup for Caddy works great but it does not let me also setup a local file-server to serve image files (maybe it will but I don’t find any documentation on how to put multiple directives in the command line call) I am trying to have the caddy.service use a Caddyfile to startup - so I can: first reverse-proxy without the embedded CLI parameter; then expand the Caddyfile to enable a local caddy file server to serve image files.
4. Error messages and/or full log output:
systemctl status caddy displays … Active: failed (Result: exit-code …) and code=exited, status=1
5. What I already tried:
I have read through the Caddy documentation and tried to implement Caddy as recommeded, ie: create a clean VM with Ubuntu, install Caddy per the install docs at caddyserver.com for debian-ubuntu-raspbian.
I’ve been logged in as root for all of these actions.
Once that’s done I install ManagerIO, but not their section on “Setting up HTTPS”, then I modified the Caddyfile to reverse proxy for the managerio application. I’m not trying to do anything else - just to get HTTPS for ManagerIO to work with a Caddyfile as it now works with their recommended service setup. I have tried the approaches recommended in the tutorials on the caddyserver site using a single reverse_proxy command in the Caddyfile.
When I use systemctl start caddy to start the service I receive the report and error above.
I hope not to waste anyone’s time however I have invested over 40 hours time to learn about Caddy and to follow through the tutorials to get familiar with how it works. I had been using Let’s Encrypt before I implemented ManagerIO’s solution “Setting up HTTPS” so I’m really happy with how easy Caddy is and I’d like to continue using Caddy with ManagerIO. There are a lot of ManagerIO users who have problems using images in their databases so a Caddy solution to support ManagerIO and a local image server would be sweet!
Thank You for any help you can send our way!