Class: Nginx::TlsRedirectServerBlock

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

Instance Method Summary collapse

Methods inherited from ServerBlock

#save, #to_s

Constructor Details

#initialize(domain_name) ⇒ TlsRedirectServerBlock

Returns a new instance of TlsRedirectServerBlock.



75
76
77
78
79
80
81
# File 'lib/shared_infrastructure/nginx/server_block.rb', line 75

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