KBDéveloppement

Configurer un reverse proxy avec Caddy

10 vues · Mis à jour le 10/05/2026

Caddy

Installation

apt install -y debian-keyring debian-archive-keyring apt-transport-https\ncurl -1sLf https://dl.cloudsmith.io/public/caddy/stable/gpg.key | gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg\ncurl -1sLf https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt | tee /etc/apt/sources.list.d/caddy-stable.list\napt update && apt install caddy

Configuration

# /etc/caddy/Caddyfile\nvotredomaine.ca {\n    reverse_proxy localhost:3000\n}\n\napi.votredomaine.ca {\n    reverse_proxy localhost:8080\n}

Avantages

  • HTTPS automatique — Caddy obtient et renouvelle les certificats Let's Encrypt automatiquement
  • Configuration simple — Beaucoup plus simple que Nginx
  • HTTP/2 et HTTP/3 — Activés par défaut
Cet article vous a-t-il été utile?
Besoin d'aide?

Vous n'avez pas trouvé votre réponse?

Ouvrir un ticket
Écosystème NHC : 🌐 NHC Hosting 🚀 NHC Portal 🖥️ NHC Panel 🔑 NHC Manager 📡 NHC Uptime 🛡️ NHC Security