synapse-easy 0.1.11 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 625d6fa03e5562fb9d94b3f8e38c94771d7ce28c
4
- data.tar.gz: 6471112c152f8cff0e408e6678cfe5b13adcf2c3
3
+ metadata.gz: e6ec54ed9aa5eaca31ba802b55ab8f9d57cfcf7e
4
+ data.tar.gz: 406fe78a26250f9a7e6fb9ca1880b4945accf22d
5
5
  SHA512:
6
- metadata.gz: c25e55abef7d096c66e41acee03022731c13f4463e3e484830e14998ada2d217ce9384b3d6a490471d67965abd3f66bb1f2acdba76e56e4c69b5e90398c67d3c
7
- data.tar.gz: 3d7b9568a4ff250363b2cdc2c5f396b5132dcecce849765af090fe9cc78f86af3ee24527c50b11d525e3b28cb255aea8f1daec3e31c5f2e48d43b016ee7875f0
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
@@ -1,5 +1,5 @@
1
1
  module Synapse
2
2
  module Easy
3
- VERSION = "0.1.11"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synapse-easy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathias Kaufmann