Class: Nginx::Builder::RailsHttp
- Defined in:
- lib/shared_infrastructure/nginx/builder.rb
Instance Attribute Summary
Attributes inherited from Site
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(user, _certificate_domain = nil, accel_location: nil, domain: nil) ⇒ RailsHttp
constructor
A new instance of RailsHttp.
Methods inherited from Rails
Methods inherited from Site
Methods inherited from Base
#https_reminder_message, #save, #to_s
Constructor Details
#initialize(user, _certificate_domain = nil, accel_location: nil, domain: nil) ⇒ RailsHttp
Returns a new instance of RailsHttp.
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 |
# File 'lib/shared_infrastructure/nginx/builder.rb', line 195 def initialize(user, _certificate_domain = nil, accel_location: nil, domain: nil) accel_location = Accel.new(accel_location, domain: domain) if accel_location super(user, Nginx::RailsServerBlock.new( upstream: Nginx::Upstream.new(domain.domain_name), server: Nginx::RailsServer.new(domain: domain), listen: Nginx::ListenHttp.new, location: [ Nginx::RailsLocation.new(domain.domain_name), accel_location ? Nginx::AccelLocation.new(domain.domain_name, accel_location) : nil, Nginx::ActionCableLocation.new(domain.domain_name) ].compact, accel_location: accel_location, domain: domain ), domain: domain ) end |