Files
ServerKit/backend/templates/caddy.yaml
T
Juan Denis 3ca6bd23a9 Update template icons and enhance sidebar user menu
Switched all template icon URLs to use local /serverkit.ai/imgs/template-icons/ assets for consistency and reliability. Improved the Sidebar component with a new user context menu featuring theme switching, settings navigation, and logout, along with conditional display of the WordPress pipeline link. Added and updated related styles for the sidebar, user menu, and page headers, and introduced new theme variables for code/terminal backgrounds.
2026-01-27 20:53:57 -05:00

70 lines
1.3 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
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