Move hubot nginx sites to proxy role, deploy to fornax

This commit is contained in:
Râu Cao
2022-11-04 14:41:21 +01:00
parent 6cce1d9df8
commit 65933bef4b
6 changed files with 60 additions and 28 deletions

View File

@@ -2,10 +2,9 @@
# Generated by Chef
#
upstream _express_<%= @server_name.gsub(".", "_") %> {
server localhost:<%= @express_port %>;
server <%= @upstream_host || "localhost" %>:<%= @express_port %>;
}
<% if File.exist?(@ssl_cert) && File.exist?(@ssl_key) -%>
server {
listen 443 ssl http2;
server_name <%= @server_name %>;
@@ -26,4 +25,3 @@ server {
ssl_certificate <%= @ssl_cert %>;
ssl_certificate_key <%= @ssl_key %>;
}
<% end -%>