Добавить конфигурацию для развертывания Caddy и обновить файлы конфигурации для различных сервисов
This commit is contained in:
28
conf.d/portainer.caddy
Normal file
28
conf.d/portainer.caddy
Normal file
@@ -0,0 +1,28 @@
|
||||
http://portainer.ada-dev.ru {
|
||||
redir https://portainer.ada-dev.ru{uri}
|
||||
}
|
||||
|
||||
portainer.ada-dev.ru {
|
||||
import mtls_protect
|
||||
|
||||
header {
|
||||
Strict-Transport-Security "max-age=31536000; includeSubDomains"
|
||||
}
|
||||
|
||||
encode zstd gzip
|
||||
|
||||
reverse_proxy http://192.168.1.20:8010 {
|
||||
transport http {
|
||||
versions 1.1
|
||||
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