lightweight, client-only calendar web application. All data persists in the URL hash for instant sharing, No backend required. Optional AES-GCM password protection keeps shared links locked without a server
JavaScript
Update Caddyfile, docker-compose.yaml, and .gitignore for hash-calendar project
David Frankela734f44feef2
diff --git a/.gitignore b/.gitignoreindex 3566fa9..11f0d71 100644--- a/.gitignore+++ b/.gitignore@@ -1 +1,2 @@-task.md\ No newline at end of file+task.md+.env\ No newline at end of filediff --git a/Caddyfile b/Caddyfileindex 685b213..d766e5b 100644--- a/Caddyfile+++ b/Caddyfile@@ -1,30 +1,30 @@-:80 {- # Serve all files from the current directory- file_server {- hide .git .gitignore .dockerignore Dockerfile docker-compose.yaml Caddyfile task.md- }-- # Compress responses- encode gzip-- # Set appropriate cache headers- @static {- path *.css *.js *.json *.png *.jpg *.jpeg *.gif *.svg *.ico *.woff *.woff2 *.ttf *.eot- }- header @static Cache-Control "public, max-age=31536000, immutable"-- # Dynamic content (HTML) - don't cache- @html {- path_regexp ^.*\.html?$- }- header @html Cache-Control "public, max-age=0, must-revalidate"-- # SPA support - rewrite all requests to index.html for hash-based routing- try_files {path} /index.html-- # Log requests- log {- output stdout- format console- }-}+:80 {+ # Serve all files from the current directory+ file_server {+ hide .git .gitignore .dockerignore Dockerfile docker-compose.yaml Caddyfile LLM.md+ }++ # Compress responses+ encode gzip++ # Set appropriate cache headers for static assets+ @static {+ path *.css *.js *.json *.png *.jpg *.jpeg *.gif *.svg *.ico *.woff *.woff2 *.ttf *.eot+ }+ header @static Cache-Control "public, max-age=31536000, immutable"++ # Dynamic content (HTML) - don't cache+ @html {+ path_regexp ^.*\.html?$+ }+ header @html Cache-Control "public, max-age=0, must-revalidate"++ # Hash-calendar SPA: rewrite hash-based routes to index.html+ try_files {path} /index.html++ # Log requests+ log {+ output stdout+ format console+ }+}diff --git a/docker-compose.yaml b/docker-compose.yamlindex c365418..18acb89 100644--- a/docker-compose.yaml+++ b/docker-compose.yaml@@ -1,28 +1,27 @@-services:- spreadsheet:- build:- context: .- dockerfile: Dockerfile- container_name: spreadsheet-app- ports:- - "${HOST_PORT_HTTP:-80}:80"- - "${HOST_PORT_HTTPS:-443}:443"- environment:- # Add any environment variables here if needed- TZ: UTC- restart: unless-stopped- healthcheck:- test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost/"]- interval: 30s- timeout: 3s- retries: 3- start_period: 5s- # Optional: Mount local directory for development- #volumes:- # - ./:/srv:ro # Read-only mount for live development- networks:- - spreadsheet-network--networks:- spreadsheet-network:- driver: bridge+services:+ hash-calendar:+ build:+ context: .+ dockerfile: Dockerfile+ container_name: hash-calendar+ ports:+ - "${HOST_PORT_HTTP:-80}:80"+ - "${HOST_PORT_HTTPS:-443}:443"+ environment:+ TZ: UTC+ restart: unless-stopped+ healthcheck:+ test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost/"]+ interval: 30s+ timeout: 3s+ retries: 3+ start_period: 5s+ # Optional: Mount local directory for development+ #volumes:+ # - ./:/srv:ro # Read-only mount for live development+ networks:+ - hash-calendar-network++networks:+ hash-calendar-network:+ driver: bridge