[core] Unix upstreams: unix:/path parses strictly into a socket upstream; edge proxies and health-checks it in plain HTTP over the socket, Caddy dials unix/<path>
This commit is contained in:
@@ -34,6 +34,7 @@ pub(crate) mod reason {
|
||||
pub const URL_CREDENTIALS: &str = "credentials in the URL are not allowed";
|
||||
pub const URL_FRAGMENT: &str = "a #fragment is not allowed";
|
||||
pub const URL_NO_HOST: &str = "it has no host";
|
||||
pub const URL_UNIX_PATH: &str = "a socket upstream is unix:/absolute/path: letters, digits, '.', '_', '-' and single '/' only, no '.' or '..' parts, at most 100 characters";
|
||||
pub const URL_HOST_NAME: &str = "the host name is not valid";
|
||||
pub const URL_NO_PORT: &str = "it has no port";
|
||||
pub const URL_PORT_ZERO: &str = "port 0 is not usable";
|
||||
@@ -275,6 +276,7 @@ impl ValidationError {
|
||||
x if x == r::URL_PATH => "host.upstream.path",
|
||||
x if x == r::URL_QUERY => "host.upstream.query",
|
||||
x if x == r::URL_MIXED => "host.upstream.mixed_schemes",
|
||||
x if x == r::URL_UNIX_PATH => "host.upstream.unix_path",
|
||||
_ => "host.upstream.not_url",
|
||||
},
|
||||
E::DuplicateUpstream { .. } => "host.upstream.duplicate",
|
||||
|
||||
Reference in New Issue
Block a user