[SHOT-96] Apply new http2 directive (#521)

* Apply new http2 directive

Removed 'http2' from listen directives and enabled http2 in the server block.

* typo
This commit is contained in:
MtnBurrit0
2026-06-05 13:51:55 -06:00
committed by GitHub
parent 4772370a05
commit 6ebfaef7ae

View File

@@ -10,11 +10,12 @@ server {
}
server {
listen {{{String.Coalesce env.BW_PORT_HTTPS "8443"}}} ssl http2;
listen {{{String.Coalesce env.BW_PORT_HTTPS "8443"}}} ssl;
{{#if (String.Equal env.BW_ENABLE_IPV6 "true")}}
listen [::]:{{{String.Coalesce env.BW_PORT_HTTPS "8443"}}} ssl http2;
listen [::]:{{{String.Coalesce env.BW_PORT_HTTPS "8443"}}} ssl;
{{/if}}
server_name {{{String.Coalesce env.BW_DOMAIN "localhost"}}};
http2 on;
ssl_certificate /etc/bitwarden/{{{String.Coalesce env.BW_SSL_CERT "ssl.crt"}}};
ssl_certificate_key /etc/bitwarden/{{{String.Coalesce env.BW_SSL_KEY "ssl.key"}}};