🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Update Caddyfile and docker-compose.yml for local development configuration
Bill Yangaaeba003f541
diff --git a/docs/Caddyfile b/docs/Caddyfileindex 79c97af17..188e83226 100644--- a/docs/Caddyfile+++ b/docs/Caddyfile@@ -1,5 +1,11 @@# Caddyfile for docs-{$DOMAIN_NAME} {+{+ # Global options+ auto_https off # Disable automatic HTTPS+ local_certs # Use local certificates for development+}++{$DOMAIN_NAME:localhost} {# Enable compressionencode zstd gzip@@ -10,7 +16,6 @@# Security headersheader {- Strict-Transport-Security max-age=31536000;X-Content-Type-Options nosniffX-Frame-Options DENYReferrer-Policy strict-origin-when-cross-origindiff --git a/docs/docker-compose.yml b/docs/docker-compose.ymlindex e99c9a763..723168f11 100644--- a/docs/docker-compose.yml+++ b/docs/docker-compose.yml@@ -5,15 +5,13 @@ services:restart: unless-stoppedports:- "8080:80" # Using different port to avoid conflict with main app- - "8443:443"- - "8443:443/udp" # Needed for HTTP/3volumes:- ./Caddyfile:/etc/caddy/Caddyfile # Mount Caddy config file- docs_caddy_data:/data # Mount persistent data volume for certs etc.- docs_caddy_config:/config # Mount persistent config volumeenvironment:- # Pass domain name for use in Caddyfile (will need to be set when running)- - DOMAIN_NAME=rybbit.io+ # Fallback to localhost if domain not set+ - DOMAIN_NAME=${DOMAIN_NAME:-localhost}depends_on:- docs