Skip to content

Commit

Permalink
NGX-868: Remove 'listen...http2;' in favor of 'http2 on;' (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
combssm authored May 12, 2024
1 parent 4e2c00e commit 822c818
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion templates/etc/nginx/conf.d/default.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ server {
{% if use_letsencrypt is defined and use_letsencrypt|bool %}
server {

listen 443 ssl http2;
listen 443 ssl;
server_name _;

http2 on;

ssl_certificate /etc/letsencrypt/live/{{ site_domain }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ site_domain }}/privkey.pem;

Expand Down
9 changes: 7 additions & 2 deletions templates/etc/nginx/conf.d/site.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
{% if site_domain != ansible_nodename %}
server {
listen 80;
listen 443 ssl http2;
listen 443 ssl;

http2 on;

ssl_certificate /etc/letsencrypt/live/{{ ansible_nodename }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ ansible_nodename }}/privkey.pem;
Expand Down Expand Up @@ -61,7 +63,10 @@ server {
server {
listen 80;
{% if use_letsencrypt is defined and use_letsencrypt|bool %}
listen 443 ssl http2;
listen 443 ssl;

http2 on;

ssl_certificate /etc/letsencrypt/live/{{ site_domain }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ site_domain }}/privkey.pem;
{% endif %}
Expand Down

0 comments on commit 822c818

Please sign in to comment.