I have got 2 Go web servers (labstack/echo) running on the same machine (one is for the web page and the other is for admin area). My server has to public IP addresses for each web site (web server).
Now, I want to be able to use HTTPS for both sites, and after researching and reading a lot of material, I cam to conclusion that Caddy seems to be the perfect fit for my requirements. So my question is as follows:
Should I use Caddy as a proxy to forward the requests onto each server depending on a subdomain, or should I embed Caddy into my web servers?
I tried to use caddy as a forwarding proxy with this caddyfile
log access.log and errors error.log will write access and error log files. You may also want to run Caddy with -log process.log to get a detailed process log (for items not related to requests).