වෙබ් සේවාදායකයන්
ස්වයංක්රීය HTTPS සහ පහසු වින්යාසකරණය සහිත නවීන වෙබ් සේවාදායකය
කිසිදු වින්යාසයක් නොමැතිව Let's Encrypt වෙතින් ස්වයංක්රීය SSL/TLS සහතික ලබාගැනීම සහ අලුත් කිරීම
ලිවීමට සහ නඩත්තු කිරීමට පහසු, මිනිසුන්ට කියවිය හැකි Caddyfile ආකෘතිය, හෝ වැඩසටහන්ගත පාලනය සඳහා JSON
HTTP/2, HTTP/3 (QUIC), WebSocket, gRPC සහ අනෙකුත් නවීන protocols සඳහා ස්වදේශීය සහාය
බර සමතුලිත කිරීම, සෞඛ්ය පරීක්ෂා, පරිපථ බිඳුම් (circuit breakers) සහ active/passive failover සහිත උසස් reverse proxy
දහස් ගණනක් අභිරුචි domains ඇති SaaS වේදිකා සඳහා ඉල්ලුම අනුව සහතික නිකුත් කිරීම
සම්බන්ධතා නොකඩවා හෝ බාධා නොවී වින්යාසය සෙමින් නැවත පූරණය කරන්න
# 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} වින්යාසගත කරන්නheader directive භාවිත කරන්න
අපගේ සරල VPS යෙදවීමේ ක්රියාවලිය සමඟ විනාඩි කිහිපයකින් ආරම්භ කරන්න
ගැන යෙදවීම2මිනිත්තු • සම්පූර්ණ මූල ප්රවේශය • ටිකට් සහ ඊ-තැපැල් මගින් සහාය