Files
Super-HomeworkManager/Caddyfile
2026-03-25 14:05:14 +09:00

28 lines
707 B
Caddyfile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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
}