TLS SNI: Use proxy protocol
This commit is contained in:
parent
a9e5a7e83d
commit
469fcbcbe8
1 changed files with 29 additions and 3 deletions
|
@ -9,7 +9,7 @@
|
|||
}
|
||||
|
||||
upstream rupert {
|
||||
server rupert.gvfr.de:443;
|
||||
server rupert.gvfr.de:4431;
|
||||
}
|
||||
|
||||
upstream localserv {
|
||||
|
@ -18,16 +18,42 @@
|
|||
|
||||
server {
|
||||
listen 443;
|
||||
ssl_preread on;
|
||||
|
||||
# proxy_connect_timeout 1s;
|
||||
# proxy_timeout 3s;
|
||||
# resolver 1.1.1.1;
|
||||
|
||||
proxy_pass $target_backend;
|
||||
ssl_preread on;
|
||||
proxy_next_upstream off;
|
||||
|
||||
proxy_protocol on;
|
||||
}
|
||||
'';
|
||||
|
||||
defaultSSLListenPort = 4431;
|
||||
defaultListen = [
|
||||
{
|
||||
addr = "0.0.0.0";
|
||||
port = 80;
|
||||
ssl = false;
|
||||
}
|
||||
{
|
||||
addr = "[::0]";
|
||||
port = 80;
|
||||
ssl = false;
|
||||
}
|
||||
{
|
||||
addr = "0.0.0.0";
|
||||
port = 4431;
|
||||
ssl = true;
|
||||
proxyProtocol = true;
|
||||
}
|
||||
{
|
||||
addr = "[::0]";
|
||||
port = 4431;
|
||||
ssl = true;
|
||||
proxyProtocol = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue