# Caddyfile - Reverse Proxy Configuration # # 使用方法: # 本番環境で公開する場合は、以下の `:80` を実際のドメイン(例: example.com)に変更してください。 # 変更して docker compose up -d を再実行すると、自動的にHTTPS証明書が取得されます。 :80 { reverse_proxy app:8080 # ログ設定 log { output file /data/access.log format json } # セキュリティヘッダー header { X-Content-Type-Options nosniff X-Frame-Options DENY X-XSS-Protection "1; mode=block" Referrer-Policy strict-origin-when-cross-origin -Server } # gzip 圧縮 encode gzip }