synapse-easy 0.1.11 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/synapse/easy/section/base.rb +3 -1
- data/lib/synapse/easy/section/http.rb +3 -2
- data/lib/synapse/easy/version.rb +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: e6ec54ed9aa5eaca31ba802b55ab8f9d57cfcf7e
|
4
|
+
data.tar.gz: 406fe78a26250f9a7e6fb9ca1880b4945accf22d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9e97bc4a46db966f312f6d17ba3fb17c2bed85c7828de224a29234a911be71fee98a123f71ba87da768484d2fed5c96358846f44116e6df44386bdcfebde182
|
7
|
+
data.tar.gz: 9b0e6942bdba560578b6816cb5e48093e1d0dfc3eb20481b86f4ec29fc3a2459cb12bec6ce6fd89f0297ff4154a4f41ce14f40b19c28f67bc91ac16b6be6cdaf
|
@@ -7,7 +7,7 @@ module Synapse
|
|
7
7
|
module Section
|
8
8
|
class Base
|
9
9
|
include Fake::Hash
|
10
|
-
attr_accessor :type, :name, :options, :address, :port
|
10
|
+
attr_accessor :type, :name, :options, :address, :port, :mode
|
11
11
|
def initialize params={}
|
12
12
|
@address = params[:address]
|
13
13
|
@address ||= "localhost"
|
@@ -16,6 +16,8 @@ module Synapse
|
|
16
16
|
@name = params[:name]
|
17
17
|
@type = params[:type]
|
18
18
|
@type ||= "frontend"
|
19
|
+
@type = params[:mode]
|
20
|
+
@type ||= :http
|
19
21
|
@options = params[:options]
|
20
22
|
@options ||= []
|
21
23
|
end
|
@@ -44,16 +44,17 @@ module Synapse
|
|
44
44
|
@complex_bind << bind
|
45
45
|
@complex_bind << "ssl" if ssl
|
46
46
|
@complex_bind << "crt" if ssl
|
47
|
-
@complex_bind << default_certificate
|
47
|
+
@complex_bind << "#{default_certificate}"
|
48
48
|
certificates.each do |certificate|
|
49
49
|
@complex_bind << "crt"
|
50
|
-
@complex_bind << certificate
|
50
|
+
@complex_bind << "#{certificate}"
|
51
51
|
end
|
52
52
|
@complex_bind.compact.join(" ")
|
53
53
|
end
|
54
54
|
def section_options
|
55
55
|
@options.reject{|o| o =~ /^bind/} + [
|
56
56
|
"bind #{complex_bind}",
|
57
|
+
"mode #{mode}",
|
57
58
|
"reqadd X-Forwarded-Proto:\\ #{protocol}",
|
58
59
|
secure_cookies,
|
59
60
|
strict_security
|
data/lib/synapse/easy/version.rb
CHANGED