Class: Nginx::TlsRedirectServerBlock
- Inherits:
-
ServerBlock
- Object
- ServerBlock
- Nginx::TlsRedirectServerBlock
- Defined in:
- lib/shared_infrastructure/nginx/server_block.rb
Instance Method Summary collapse
-
#initialize(domain_name) ⇒ TlsRedirectServerBlock
constructor
A new instance of TlsRedirectServerBlock.
Methods inherited from ServerBlock
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 |