Skip to content

DietPi-Software | Caddy server #4044

Description

@jcw

Formal software information

Are there similar/alternative software titles available with DietPi-Software?

  • Nginx, Apache, etc

What makes your requested software better than the above solutions, if available?

  • does HTTPS (w/ Let's Encrypt) by default, for multiplel domains
  • very simple "Caddyfile" config when used for simple configurations
  • a single executable, and a single config file (unless you prefer to split it)
  • built in Go, which has its own strong and independent network stack (with Google behind it)

How can DietPi make the installation easier or compatible, than following the install instructions or do APT installation, if available?

  • a DIY install of caddy is easy, but it interferes with other web servers on ports 80 & 443
  • the key benefit (auto-HTTPS) of caddy mainly adds value if it were made the "central" web server
  • this is of course not going to satisfy everyone, so "switching to" caddy probably needs to be optional
  • but this is already supported in DietPi, with the choice of a "Webserver Preference" in dietpi-software

Can you provide the installation steps that you would suggest DietPi-Software to do?

  1. Install Caddy (single-exe, just fetch the proper one from github release page)
  2. prepare minimal CaddyFile (the usual path is /etc/caddy/, I think)
  3. add new "caddy.service" to systemd, see https://caddyserver.com/docs/install#linux-service

Are you willing to help maintaining the software installation, e.g. in case of needed setup changes due to updates etc.? This is not needed, but could speed up our decision to implement it, as man power is always a topic 😉.

  • I can help, in that I'm fairly familiar with Go, and have been using Caddy for some time (v2 only since mid 2020)
  • I've set it up for static sites, as PHP proxy (e.g. Nextcloud), and as reverse proxy (e.g. Gitea)
  • and FWIW: no "deep" insight into Caddy, moderate networking knowledge, well-versed in Unix stuff

Vote for this software on FeatHub: https://feathub.com/MichaIng/DietPi/

https://feathub.com/MichaIng/DietPi/+100

(related issue: #1622)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions