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_names) ⇒ 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_names)
  super(
    server: Server.new(domain: SharedInfrastructure::Domain.new(*domain_names)),
    listen: ListenHttp.new,
    location: RedirectLocation.new
  )
end