I am looking to solve the acute issue of my analytics page showing 0 visits, but would like to use the opportunity to understand how this constellation of software works in the process. I am also open to suggestions of better ways to set up my hosting.
I am using the nginx-proxy and acme-companion containers to provide lets encrypt certs for a range of projects hosted on my VM, now ghost is another. I don’t generate the NGINX confs myself, the VIRTUAL_HOST environment variable seems to trigger that automatically while serving multiple domains. Hoping to keep it that way
.
I had the blog up and running, with a few issues, that I am trying to work through (admin emails aren’t sending, the subscription submission hangs and also the analytics issue). As far as I can tell, initially I didn’t have Caddy running, it isn’t in the compose.yml (is it there normally?) But maybe that is the source of my analytics issue. Would I be right in thinking that Caddy is configured to duplicate requests to Ghost and traffic-analytics and without it it’s getting no requests?
So I guess I need to locate a copy of the Caddy part of compose.yml, reinstate it and put the VIRTUAL_HOST entry in the caddy section instead of the ghost section. Does that sound right? Thanks in advance.