Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[upd] wordpress-site.conf.j2 fix deprecated directive nginx ^1.25.1 #1512

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions roles/wordpress-setup/templates/wordpress-site.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

server {
{% block server_id -%}
listen {{ ssl_enabled | ternary('[::]:443 ssl http2', '[::]:80') }};
listen {{ ssl_enabled | ternary('443 ssl http2', '80') }};
listen {{ ssl_enabled | ternary('[::]:443 ssl', '[::]:80') }};
listen {{ ssl_enabled | ternary('443 ssl', '80') }};
http2 on;
server_name {{ site_hosts_canonical | union(multisite_subdomains_wildcards) | join(' ') }};
{% endblock %}

Expand Down Expand Up @@ -290,8 +291,9 @@ server {
{% for host in item.value.site_hosts if host.redirects | default([]) %}
server {
{% if ssl_enabled -%}
listen [::]:443 ssl http2;
listen 443 ssl http2;
listen [::]:443 ssl;
listen 443 ssl;
http2 on;
{% endif -%}
listen [::]:80;
listen 80;
Expand Down
Loading