class Nginx::Builder::RailsHttp
Public Class Methods
new(user, _certificate_domain = nil, accel_location: nil, domain: nil, rails_env: "production")
click to toggle source
Calls superclass method
Nginx::Builder::Rails::new
# File lib/shared_infrastructure/nginx/builder.rb, line 192 def initialize(user, _certificate_domain = nil, accel_location: nil, domain: nil, rails_env: "production") accel_location = Accel.new(accel_location, domain: domain) if accel_location super(user, Nginx::ServerBlock.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, rails_env: rails_env ) end
Public Instance Methods
save()
click to toggle source
Calls superclass method
Nginx::Builder::Rails#save
# File lib/shared_infrastructure/nginx/builder.rb, line 212 def save result = super https_reminder_message result end