ဝဘ်ဆာဗာများ
အလိုအလျောက် HTTPS နှင့် လွယ်ကူစွာ ပြင်ဆင်သတ်မှတ်နိုင်သော ခေတ်မီဝဘ်ဆာဗာ
Let's Encrypt မှ SSL/TLS certificate ကို အလိုအလျောက် ရယူခြင်းနှင့် သက်တမ်းတိုးခြင်း၊ configuration သုညဖြင့်
ရေးရလွယ်ပြီး ထိန်းသိမ်းရလွယ်ကူသော လူဖတ်ရလွယ်သည့် Caddyfile format၊ သို့မဟုတ် programmatic control အတွက် JSON
HTTP/2၊ HTTP/3 (QUIC)၊ WebSocket၊ gRPC နှင့် အခြား ခေတ်မီ protocol များကို မူရင်းထောက်ပံ့ခြင်း
load balancing၊ ကျန်းမာရေး စစ်ဆေးမှု၊ circuit breaker နှင့် active/passive အစားထိုးပြောင်းခြင်း ပါသော အဆင့်မြင့် ပြောင်းပြန် ပရောက်စီ
custom domain ထောင်ပေါင်းများစွာရှိသော SaaS platform များအတွက် certificate များကို on-demand ထုတ်ပေးခြင်း
connection များ ပြတ်တောက်ခြင်း သို့မဟုတ် downtime မဖြစ်စေဘဲ configuration ကို graceful reload လုပ်ခြင်း
# Install Caddy from official repository
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install caddy
# Or download binary directly
curl -o caddy 'https://caddyserver.com/api/download?os=linux&arch=amd64'
chmod +x caddy
sudo mv caddy /usr/local/bin/
# Verify installation
caddy versionအမြန်စတင်ခြင်း - Static Site:# Create Caddyfile
cat > Caddyfile <<EOF
example.com {
root * /var/www/html
file_server
}
EOF
# Start Caddy
sudo caddy start
# Or run in foreground
sudo caddy runReverse Proxy ဥပမာ:cat > Caddyfile <<EOF
api.example.com {
reverse_proxy localhost:8080
}
EOF
sudo caddy run
# Simple static site with automatic HTTPS
example.com {
root * /var/www/html
file_server
encode gzip
}
# Reverse proxy to backend
api.example.com {
reverse_proxy localhost:3000
}
# Multiple backends with load balancing
app.example.com {
reverse_proxy localhost:8080 localhost:8081 localhost:8082 {
lb_policy round_robin
health_uri /health
}
}
# SPA with fallback
spa.example.com {
root * /var/www/spa
try_files {path} /index.html
file_server
}အဆင့်မြင့် လုပ်ဆောင်ချက်များ:encode gzip zstd ကို အသုံးပြုပါfile_server {precompressed gzip br} ကို configure လုပ်ပါheader directive ကို အသုံးပြုပါ
ကျွန်တော်တို့ရဲ့ရိုးရှင်းတဲ့ VPS ဖြန့်ချိလုပ်ငန်းစဉ်နှင့်အတူမိနစ်အနည်းငယ်အတွင်းစတင်
Deploy in about 2 minutes • Full root access • Support by ticket and email