Добавить конфигурацию для развертывания Caddy и обновить файлы конфигурации для различных сервисов
This commit is contained in:
33
conf.d/sync.caddy
Normal file
33
conf.d/sync.caddy
Normal file
@@ -0,0 +1,33 @@
|
||||
http://sync.ada-dev.ru {
|
||||
redir https://sync.ada-dev.ru{uri}
|
||||
}
|
||||
|
||||
sync.ada-dev.ru {
|
||||
import mtls_protect
|
||||
|
||||
header {
|
||||
Strict-Transport-Security "max-age=31536000; includeSubDomains"
|
||||
}
|
||||
|
||||
encode zstd gzip
|
||||
|
||||
request_body {
|
||||
max_size 10GB
|
||||
}
|
||||
|
||||
reverse_proxy https://192.168.1.20:8003 {
|
||||
transport http {
|
||||
versions 1.1
|
||||
tls_insecure_skip_verify
|
||||
read_timeout 3600s
|
||||
write_timeout 3600s
|
||||
response_header_timeout 3600s
|
||||
dial_timeout 3600s
|
||||
}
|
||||
header_up Host {host}
|
||||
header_up X-Real-IP {remote_host}
|
||||
header_up X-Forwarded-For {remote_host}
|
||||
header_up X-Forwarded-Proto {scheme}
|
||||
flush_interval -1
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user