vps 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/VERSION +1 -1
- data/lib/vps/cli/playbook/state.rb +1 -1
- data/lib/vps/version.rb +1 -1
- data/templates/docker/data/nginx/app.conf.erb +1 -1
- data/templates/docker/upstream/init-letsencrypt.sh.erb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0715c15db0c61c43f427cde770c38cde3f65e677
|
4
|
+
data.tar.gz: 62fbbc6d56af47c025031dd5125ab7a4072d546d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0850d9d9a5888d1162e7cb491906f0afea445f82535a68ae03014b6304cb594c7c81f765f14325bf0b1d295a1a88a7e07ac009859f6d5c0ba727d3fee34988a8
|
7
|
+
data.tar.gz: 7c6dfffa4ce37dc82012bf13865cc03f9feb6367c1565305f5a7461f88fe73d951fccd502fbfc6544df7505f50fb1de15feabdef5ec29bffd682cfc0a768f1be
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
data/lib/vps/version.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
upstream <%= upstream[:name] %> {
|
4
4
|
server <%= upstream[:name] %>:<%= upstream[:port] %>;
|
5
5
|
}
|
6
|
-
<%- upstream[:domains].partition{|domain| domain.include?("http://")}.reject(&:empty?).each do |domains| %>
|
6
|
+
<%- (upstream[:domains] || []).partition{|domain| domain.include?("http://")}.reject(&:empty?).each do |domains| %>
|
7
7
|
<%-
|
8
8
|
https = domains.first.include?("https://")
|
9
9
|
domains = domains.collect{|domain| domain.gsub(/https?:\/\//, "")}.join(" ")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/bin/bash
|
2
2
|
|
3
|
-
<%- if (domains = upstream[:domains].collect{|domain| domain.dup.gsub!("https://", "")}.compact).any? %>
|
3
|
+
<%- if (domains = (upstream[:domains] || []).collect{|domain| domain.dup.gsub!("https://", "")}.compact).any? %>
|
4
4
|
domains=(<%= domains.join(" ") %>)
|
5
5
|
email="<%= upstream[:email] || "noreply@#{domains.first}" %>" # Adding a valid address is strongly recommended
|
6
6
|
data_path="./data/certbot"
|