Fix nginx template
It refused to accept connections when the header directive was before the server_name one.
This commit is contained in:
parent
e62393e443
commit
f26edab7ad
@ -6,8 +6,6 @@ upstream _<%= @app_name %> {
|
||||
<% if File.exist?(@ssl_cert) && File.exist?(@ssl_key) -%>
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
add_header Strict-Transport-Security "max-age=15768000";
|
||||
|
||||
server_name <%= @server_name %>;
|
||||
|
||||
access_log <%= node[:nginx][:log_dir] %>/<%= @app_name %>.access.log json;
|
||||
@ -15,6 +13,8 @@ server {
|
||||
|
||||
gzip on;
|
||||
|
||||
add_header Strict-Transport-Security "max-age=15768000";
|
||||
|
||||
location / {
|
||||
proxy_buffers 1024 8k; # Increase number of buffers. Default is 8
|
||||
proxy_pass http://_<%= @app_name %>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user