Skip to content

Commit aa21ef3

Browse files
committed
correct location for directive
1 parent 19cd828 commit aa21ef3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/mode/static/nginx/config/servers_template.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ server {
2222
listen {{ $s.Port }} ssl;
2323
ssl_certificate {{ $s.SSL.Certificate }};
2424
ssl_certificate_key {{ $s.SSL.CertificateKey }};
25-
proxy_ssl_server_name on;
2625
2726
if ($ssl_server_name != $host) {
2827
return 421;
@@ -61,6 +60,7 @@ server {
6160
{{ $proxyOrGRPC }}_pass {{ $l.ProxyPass }};
6261
proxy_http_version 1.1;
6362
{{- if $l.ProxySSLVerify }}
63+
proxy_ssl_server_name on;
6464
{{ $proxyOrGRPC }}_ssl_verify on;
6565
{{ $proxyOrGRPC }}_ssl_name {{ $l.ProxySSLVerify.Name }};
6666
{{ $proxyOrGRPC }}_ssl_trusted_certificate {{ $l.ProxySSLVerify.TrustedCertificate }};

0 commit comments

Comments
 (0)