Refactor proxy_publish_args argument concatenation
This commit is contained in:
@@ -250,8 +250,9 @@ class Kamal::Configuration
|
|||||||
end
|
end
|
||||||
|
|
||||||
def proxy_publish_args(http_port, https_port, bind_ip = nil)
|
def proxy_publish_args(http_port, https_port, bind_ip = nil)
|
||||||
bind_ip = bind_ip ? "#{bind_ip}:" : ""
|
publish_http = [ bind_ip, http_port, PROXY_HTTP_PORT ].compact.join(":")
|
||||||
argumentize "--publish", [ "#{bind_ip}#{http_port}:#{PROXY_HTTP_PORT}", "#{bind_ip}#{https_port}:#{PROXY_HTTPS_PORT}" ]
|
publish_https = [ bind_ip, https_port, PROXY_HTTPS_PORT ].compact.join(":")
|
||||||
|
argumentize "--publish", [ publish_http, publish_https ]
|
||||||
end
|
end
|
||||||
|
|
||||||
def proxy_logging_args(max_size)
|
def proxy_logging_args(max_size)
|
||||||
|
|||||||
Reference in New Issue
Block a user