bundles/nginx: support disabling ssl for each vhost individually
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
228786f6aa
commit
74d81eb7ba
5 changed files with 27 additions and 13 deletions
|
@ -7,7 +7,7 @@ server {
|
|||
root ${webroot if webroot else '/var/www/{}/'.format(vhost)};
|
||||
index ${' '.join(index)};
|
||||
|
||||
% if node.metadata['nginx']['use_ssl_for_all_connections']:
|
||||
% if ssl:
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
|
||||
|
@ -52,7 +52,7 @@ server {
|
|||
proxy_set_header Upgrade $http_upgrade;
|
||||
% endif
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
% if node.metadata['nginx']['use_ssl_for_all_connections']:
|
||||
% if ssl:
|
||||
proxy_set_header X-Forwarded-Proto HTTPS;
|
||||
% endif
|
||||
proxy_set_header X-Forwarded-Host ${domain};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue