vps 0.1.2 → 0.2.0
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/lib/vps/cli/upstream.rb +4 -1
- data/lib/vps/version.rb +2 -2
- data/templates/docker/data/nginx/app.conf.erb +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19a1e8448e7c6d7549da881d3c4410dffd9eee99
|
4
|
+
data.tar.gz: 8ed547a6a851bfc83a7be9df20d8781d8bf39d6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 589a2204c45d5eb76a578258d6ac56b053f7efd99fec980ed81b8b9f58e2d86d25918ddd0eff90cb91be63ba1d5f0bae4b26e9bedb7636d264a1e6c377693391
|
7
|
+
data.tar.gz: 477b312e229c9cef09c4f75a9e7e8f0aff05be8d9882940b9c03721049563addc569ace2c57739cb73c4a32390c8fdd78f8743af161037183be871745652d791
|
data/CHANGELOG.md
CHANGED
data/lib/vps/cli/upstream.rb
CHANGED
@@ -10,7 +10,10 @@ module VPS
|
|
10
10
|
|
11
11
|
unless config[:upstreams].any?{|upstream| upstream[:name] == name}
|
12
12
|
spec = derive_upstream(path)
|
13
|
-
spec[:nginx] ||=
|
13
|
+
spec[:nginx] ||= {
|
14
|
+
:http => nil,
|
15
|
+
:https => nil
|
16
|
+
}
|
14
17
|
config[:upstreams].push(spec.merge({
|
15
18
|
:name => name || File.basename(path),
|
16
19
|
:path => path,
|
data/lib/vps/version.rb
CHANGED
@@ -18,6 +18,10 @@ server {
|
|
18
18
|
server_name <%= domains %>;
|
19
19
|
server_tokens off;
|
20
20
|
|
21
|
+
<%- end %>
|
22
|
+
<%- if nginx[:http] %>
|
23
|
+
<%= nginx[:http].gsub("PROXY_PASS", proxy_pass).indent(2) %>
|
24
|
+
|
21
25
|
<%- end %>
|
22
26
|
<%- if https %>
|
23
27
|
location /.well-known/acme-challenge/ {
|
@@ -47,8 +51,8 @@ server {
|
|
47
51
|
try_files $uri @app;
|
48
52
|
|
49
53
|
<%- end %>
|
50
|
-
<%- if nginx[:
|
51
|
-
<%= nginx[:
|
54
|
+
<%- if nginx[:https] %>
|
55
|
+
<%= nginx[:https].gsub("PROXY_PASS", proxy_pass).indent(2) %>
|
52
56
|
|
53
57
|
<%- end %>
|
54
58
|
location <%= nginx[:try_files] ? "@app" : "/" %> {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Engel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|