How to install Caddy on Ubuntu

Опубликовано: 07 Октябрь 2024
на канале: MivoCloud
942
48

Caddy is an open-source web server written in Go programming language and has an automatic HTTPS. It is the only web server that uses HTTPS y default. It has a modular architecture which makes it usable on any platform and has no runtime dependencies. Most people use it as a web proxy. It runs on Linux, macOS, Windows, BSD, and Solaris and is licensed under Apache License 2.0.

Caddy’s native config language is JSON which gives you absolute control over the edge of your computing platform. But you can configure Caddy using a Caddyfile. It is a human-readable file and easy to write for use in most common and manual configurations. It can be used with static sites, dynamic sites, sites that require extensions, sites with dynamic configuration, and Automatic TLS.

In this tutorial, you’ll install Caddy on Ubuntu

Commands Used
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl
curl -1sLf 'https://dl.cloudsmith.io/public/caddy... | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy... | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update && sudo apt install caddy -y
systemctl status caddy

Useful Links
VPS/VDS - https://www.mivocloud.com/
Caddy - https://caddyserver.com/