Skip to content

Commit

Permalink
correct location for directive
Browse files Browse the repository at this point in the history
  • Loading branch information
salonichf5 committed May 7, 2024
1 parent 19cd828 commit aa21ef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/mode/static/nginx/config/servers_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ server {
listen {{ $s.Port }} ssl;
ssl_certificate {{ $s.SSL.Certificate }};
ssl_certificate_key {{ $s.SSL.CertificateKey }};
proxy_ssl_server_name on;
if ($ssl_server_name != $host) {
return 421;
Expand Down Expand Up @@ -61,6 +60,7 @@ server {
{{ $proxyOrGRPC }}_pass {{ $l.ProxyPass }};
proxy_http_version 1.1;
{{- if $l.ProxySSLVerify }}
proxy_ssl_server_name on;
{{ $proxyOrGRPC }}_ssl_verify on;
{{ $proxyOrGRPC }}_ssl_name {{ $l.ProxySSLVerify.Name }};
{{ $proxyOrGRPC }}_ssl_trusted_certificate {{ $l.ProxySSLVerify.TrustedCertificate }};
Expand Down

0 comments on commit aa21ef3

Please sign in to comment.