lib/falcon/controller/proxy.rb
# Builds a map of host redirections.
Builds a map of host redirections.
Builds a map of host redirections .
def start
				configuration = @command.configuration
				services = Services.new(configuration)
				@hosts = {}
				services.each do |service|
					if service.is_a?(Service::Proxy)
						Console.logger.info(self) {"Proxying #{service.authority} to #{service.endpoint}"}
						@hosts[service.authority] = service
						service.ssl_context
					end
				end
				super
			end
def start configuration = @command . configuration services = Services . new ( configuration ) @hosts = { } services . each do | service | if service . is_a? ( Service :: Proxy ) Console . logger . info ( self ) { "Proxying #{service.authority} to #{service.endpoint}" } @hosts [ service . authority ] = service service . ssl_context end end super end
Builds a map of host redirections.
Builds a map of host redirections .
# Pre-cache the ssl contexts: # It seems some OpenSSL objects don't like event-driven I/O.