Configure kosmos-github

closes #35
This commit is contained in:
2019-04-19 17:35:29 +01:00
parent 45c764c83e
commit 1d98bf14fe
11 changed files with 290 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
# Generated by Chef
upstream _<%= @app_name %> {
server localhost:<%= @nodejs_port %>;
}
<% 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;
error_log <%= node[:nginx][:log_dir] %>/<%= @app_name %>.error.log warn;
gzip on;
location / {
proxy_buffers 1024 8k; # Increase number of buffers. Default is 8
proxy_pass http://_<%= @app_name %>;
}
ssl_certificate <%= @ssl_cert %>;
ssl_certificate_key <%= @ssl_key %>;
}
<% end -%>