Files
ServerKit/backend/templates/caddy.yaml
T
Juan DenisandClaude Fable 5 586f556b93 Reference template icons through the serverkit.ai proxy
Follow-up to 025fa0be: keep serverkit.ai as the stable icon host rather
than jsDelivr. The registry repo remains the canonical home of the logo
files; serverkit.ai proxies /imgs/template-icons/ from its raw tree, so
these URLs now resolve for all 210 logos instead of only the legacy
subset the website bundles.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-28 21:28:14 -04:00

74 lines
1.4 KiB
YAML

id: caddy
name: Caddy
version: "2.7"
description: Fast, multi-platform web server with automatic HTTPS
icon: https://serverkit.ai/imgs/template-icons/caddy.svg
website: https://caddyserver.com
documentation: https://caddyserver.com/docs/
categories:
- networking
- proxy
- ssl
variables:
- name: HTTP_PORT
description: HTTP port
type: port
default: "80"
hidden: true
- name: HTTPS_PORT
description: HTTPS port
type: port
default: "443"
hidden: true
ports:
- port: 80
protocol: tcp
description: HTTP
- port: 443
protocol: tcp
description: HTTPS
volumes:
- name: data
path: /data
description: Caddy data
- name: config
path: /config
description: Caddy configuration
- name: site
path: /srv
description: Website files
requirements:
memory: 256MB
storage: 1GB
compose:
services:
caddy:
image: caddy:${VERSION:-2.7-alpine}
container_name: ${APP_NAME}
restart: unless-stopped
volumes:
- caddy_data:/data
- caddy_config:/config
- caddy_site:/srv
ports:
- "${HTTP_PORT}:80"
- "${HTTPS_PORT}:443"
volumes:
caddy_data:
caddy_config:
caddy_site:
post_install: |
# Create default Caddyfile
cat > /var/serverkit/apps/${APP_NAME}/config/Caddyfile << 'EOF'
:80 {
respond "Hello from Caddy!"
}
EOF