Class: Nginx::TlsRedirectServerBlock

Inherits:
ServerBlock show all
Defined in:
lib/shared_infrastructure/nginx/server_block.rb

Instance Method Summary collapse

Methods inherited from ServerBlock

#to_s

Constructor Details

#initialize(domain_name) ⇒ TlsRedirectServerBlock

Returns a new instance of TlsRedirectServerBlock.



46
47
48
49
50
51
52
# File 'lib/shared_infrastructure/nginx/server_block.rb', line 46

def initialize(domain_name)
  super(
    server: Server.new(domain: SharedInfrastructure::Domain.new(domain_name)),
    listen: ListenHttp.new,
    location: RedirectLocation.new
  )
end