Module: Falcon::Environment::Virtual
- Includes:
- Configured
- Defined in:
- lib/falcon/environment/virtual.rb
Instance Method Summary collapse
-
#bind_insecure ⇒ Object
The URI to bind the ‘HTTP` -> `HTTPS` redirector.
-
#bind_secure ⇒ Object
The URI to bind the ‘HTTPS` -> `falcon host` proxy.
-
#falcon_path ⇒ Object
The path to the falcon executable from this gem.
- #name ⇒ Object
-
#service_class ⇒ Object
The service class to use for the virtual host.
-
#timeout ⇒ Object
The connection timeout to use for incoming connections.
Methods included from Configured
#configuration, #configuration_paths, #resolved_configuration_paths
Instance Method Details
#bind_insecure ⇒ Object
The URI to bind the ‘HTTP` -> `HTTPS` redirector.
31 32 33 |
# File 'lib/falcon/environment/virtual.rb', line 31 def bind_insecure "http://[::]:80" end |
#bind_secure ⇒ Object
The URI to bind the ‘HTTPS` -> `falcon host` proxy.
26 27 28 |
# File 'lib/falcon/environment/virtual.rb', line 26 def bind_secure "https://[::]:443" end |
#falcon_path ⇒ Object
The path to the falcon executable from this gem.
42 43 44 |
# File 'lib/falcon/environment/virtual.rb', line 42 def falcon_path File.("../../../bin/falcon", __dir__) end |
#name ⇒ Object
21 22 23 |
# File 'lib/falcon/environment/virtual.rb', line 21 def name service_class.name end |
#service_class ⇒ Object
The service class to use for the virtual host.
17 18 19 |
# File 'lib/falcon/environment/virtual.rb', line 17 def service_class Service::Virtual end |
#timeout ⇒ Object
The connection timeout to use for incoming connections.
36 37 38 |
# File 'lib/falcon/environment/virtual.rb', line 36 def timeout 10.0 end |