..

My Caddy Documentation

tags: documentation, software development

Caddy is a web server that I will use to host a few servers locally. I’m used to apache but it’s not available in the Proxmox VE Helper Scripts. I don’t want to go through manual installation, as they say Keep it Simple, Stupid!

Just drag and drop the web app files in /var/www/

/var/www/
    ├── site1/
    │     ├── index.html
    │     ├── css/
    │     ├── js/
    │     └── images/
    └── site2/
          ├── index.html
          └── ...

Then update the Caddy configuration in /etc/caddy/Caddyfile

# Static site 1
site1.local {
    root * /var/www/site1
    file_server
    tls internal
}

# Static site 2
site2.local {
    root * /var/www/site2
    file_server
    tls internal
}

Finally, add the site in Local DNS - in my case, it’s in OPNSense > Unbound.