Add user agent to default headers

This commit is contained in:
Donal McBreen
2024-09-16 10:01:08 +01:00
parent bf91d6c1ca
commit a316e51eda
2 changed files with 1 additions and 2 deletions

View File

@@ -72,7 +72,6 @@ class Kamal::Cli::Proxy < Kamal::Cli::Base
execute *KAMAL.registry.login
"Stopping and removing Traefik on #{host}, if running..."
execute *KAMAL.proxy.stop_traefik, raise_on_non_zero_exit: false
execute *KAMAL.proxy.cleanup_traefik
"Stopping and removing kamal-proxy on #{host}, if running..."

View File

@@ -4,7 +4,7 @@ class Kamal::Configuration::Proxy
DEFAULT_HTTP_PORT = 80
DEFAULT_HTTPS_PORT = 443
DEFAULT_IMAGE = "basecamp/kamal-proxy:latest"
DEFAULT_LOG_REQUEST_HEADERS = [ "Cache-Control", "Last-Modified" ]
DEFAULT_LOG_REQUEST_HEADERS = [ "Cache-Control", "Last-Modified", "User-Agent" ]
delegate :argumentize, :optionize, to: Kamal::Utils