class Nginx::Builder::ReverseProxyHttp
Public Class Methods
new(proxy_url, certificate_domain = nil, domain: nil)
click to toggle source
Calls superclass method
Nginx::Builder::Base::new
# File lib/shared_infrastructure/nginx/builder.rb, line 61 def initialize(proxy_url, certificate_domain = nil, domain: nil) super(Nginx::ServerBlock.new( server: Nginx::Server.new(domain: domain), listen: Nginx::ListenHttp.new, location: [ # TODO: the following should really only happen when the domains # are different. Nginx::AcmeLocation.new(certificate_domain || domain.domain_name), Nginx::ReverseProxyLocation.new(proxy_url) ] ), domain: domain ) end
Public Instance Methods
save()
click to toggle source
Calls superclass method
Nginx::Builder::Base#save
# File lib/shared_infrastructure/nginx/builder.rb, line 76 def save result = super https_reminder_message result end