Example ngnix configuration on the main page is wrong! #471

Closed
opened 2025-12-29 01:25:52 +01:00 by adam · 1 comment
Owner

Originally created by @kobaz on GitHub (Mar 19, 2020).

`
stream {
server {
map $ssl_preread_alpn_protocols $tls_port {
~\bacme-tls/1\b 10443;
default 443;
}

server {
  listen 443;
  listen [::]:443;
  proxy_pass 10.13.37.42:$tls_port;
  ssl_preread on;
}

}
}

This is invalid ngnix syntax.
Proper example:
stream {
map $ssl_preread_alpn_protocols $tls_port {
~\bacme-tls/1\b 10443;
default 4443;
}

server {
  listen 443;
  listen [::]:443;
  proxy_pass 127.0.0.1:$tls_port;
  ssl_preread on;
}

}

`

Originally created by @kobaz on GitHub (Mar 19, 2020). ` stream { server { map $ssl_preread_alpn_protocols $tls_port { ~\bacme-tls/1\b 10443; default 443; } server { listen 443; listen [::]:443; proxy_pass 10.13.37.42:$tls_port; ssl_preread on; } } } This is invalid ngnix syntax. Proper example: stream { map $ssl_preread_alpn_protocols $tls_port { ~\bacme-tls/1\b 10443; default 4443; } server { listen 443; listen [::]:443; proxy_pass 127.0.0.1:$tls_port; ssl_preread on; } } `
adam closed this issue 2025-12-29 01:25:52 +01:00
Author
Owner

@lukas2511 commented on GitHub (Apr 2, 2020):

I'm currently reworking the documentation and examples completely so I'm closing all issues and pull requests that only change those files, thanks anyway!

@lukas2511 commented on GitHub (Apr 2, 2020): I'm currently reworking the documentation and examples completely so I'm closing all issues and pull requests that only change those files, thanks anyway!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#471