edit
This commit is contained in:
7
Caddyfile
Normal file → Executable file
7
Caddyfile
Normal file → Executable file
@ -1,7 +1,8 @@
|
|||||||
{
|
{
|
||||||
email abc@firstgarden.co.kr
|
email abc@firstgarden.co.kr
|
||||||
# debug # 필요할 때만
|
log {
|
||||||
|
level INFO
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# 서비스별 설정 로드
|
|
||||||
import conf.d/*.caddy
|
import conf.d/*.caddy
|
||||||
|
|||||||
0
bootstrap.sh
Normal file → Executable file
0
bootstrap.sh
Normal file → Executable file
36
conf.d/default.caddy
Normal file → Executable file
36
conf.d/default.caddy
Normal file → Executable 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) {
|
(common_headers) {
|
||||||
header {
|
header {
|
||||||
@ -40,14 +10,12 @@
|
|||||||
|
|
||||||
# 프록시 기본 옵션
|
# 프록시 기본 옵션
|
||||||
(common_proxy) {
|
(common_proxy) {
|
||||||
reverse_proxy {
|
|
||||||
header_up X-Real-IP {remote_host}
|
header_up X-Real-IP {remote_host}
|
||||||
header_up X-Forwarded-For {remote_host}
|
#header_up X-Forwarded-For {remote_host}
|
||||||
header_up X-Forwarded-Proto {scheme}
|
#header_up X-Forwarded-Proto {scheme}
|
||||||
|
|
||||||
transport http {
|
transport http {
|
||||||
dial_timeout 10s
|
dial_timeout 10s
|
||||||
response_header_timeout 30s
|
response_header_timeout 30s
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
0
conf.d/ds423.caddy
Normal file → Executable file
0
conf.d/ds423.caddy
Normal file → Executable file
0
conf.d/ubuntu.caddy
Normal file → Executable file
0
conf.d/ubuntu.caddy
Normal file → Executable file
Reference in New Issue
Block a user