proxy/host -> proxy/hosts
This commit is contained in:
@@ -7,15 +7,16 @@
|
|||||||
# run on the same proxy.
|
# run on the same proxy.
|
||||||
proxy:
|
proxy:
|
||||||
|
|
||||||
# Host
|
# Hosts
|
||||||
#
|
#
|
||||||
# This is the host that will be used to serve the app. By setting this you can run
|
# These are the hosts that will be used to serve the app. If you deploy more
|
||||||
# multiple apps on the same server sharing the same instance of the proxy.
|
# than one application to a single host, the proxy will route requests based
|
||||||
|
# these hosts
|
||||||
#
|
#
|
||||||
# If this is set only requests that match this host will be forwarded by the proxy.
|
# If no hosts are set, then all requests will be forwarded, except for matching
|
||||||
# if this is not set, then all requests will be forwarded, except for matching
|
|
||||||
# requests for other apps that do have a host set.
|
# requests for other apps that do have a host set.
|
||||||
host: foo.example.com
|
hosts:
|
||||||
|
- foo.example.com
|
||||||
|
|
||||||
# App port
|
# App port
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ class Kamal::Configuration::Proxy
|
|||||||
|
|
||||||
def deploy_options
|
def deploy_options
|
||||||
{
|
{
|
||||||
host: proxy_config["host"],
|
host: proxy_config.fetch("hosts", []).first,
|
||||||
tls: proxy_config["ssl"],
|
tls: proxy_config["ssl"],
|
||||||
"deploy-timeout": proxy_config["deploy_timeout"],
|
"deploy-timeout": proxy_config["deploy_timeout"],
|
||||||
"drain-timeout": proxy_config["drain_timeout"],
|
"drain-timeout": proxy_config["drain_timeout"],
|
||||||
|
|||||||
Reference in New Issue
Block a user