This commit is contained in:
root
2025-12-22 14:35:46 +09:00
parent d3efc03473
commit 0c3b3b1613
5 changed files with 6 additions and 37 deletions

7
Caddyfile Normal file → Executable file
View File

@ -1,7 +1,8 @@
{
email abc@firstgarden.co.kr
# debug # 필요할 때만
email abc@firstgarden.co.kr
log {
level INFO
}
}
# 서비스별 설정 로드
import conf.d/*.caddy

0
bootstrap.sh Normal file → Executable file
View File

36
conf.d/default.caddy Normal file → Executable file
View File

@ -1,33 +1,3 @@
{
# 인증서 관련
email abc@firstgarden.co.kr
# ACME 관련 기본값
acme_ca https://acme-v02.api.letsencrypt.org/directory
# 전역 로그
log {
level INFO
output file /var/log/caddy/access.log {
roll_size 10MiB
roll_keep 10
roll_keep_for 720h
}
}
# 기본 타임아웃 (프록시 공통)
servers {
timeouts {
read_body 30s
read_header 30s
write 30s
idle 2m
}
}
}
# ===== 공통 스니펫 =====
# 보안 헤더
(common_headers) {
header {
@ -40,14 +10,12 @@
# 프록시 기본 옵션
(common_proxy) {
reverse_proxy {
header_up X-Real-IP {remote_host}
header_up X-Forwarded-For {remote_host}
header_up X-Forwarded-Proto {scheme}
#header_up X-Forwarded-For {remote_host}
#header_up X-Forwarded-Proto {scheme}
transport http {
dial_timeout 10s
response_header_timeout 30s
}
}
}

0
conf.d/ds423.caddy Normal file → Executable file
View File

0
conf.d/ubuntu.caddy Normal file → Executable file
View File