Skip to content

Commit ef7dfee

Browse files
authored
Update documentation on falcon virtual (#269)
1 parent b73ec21 commit ef7dfee

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

guides/deployment/readme.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,26 @@ graph TD;
125125
You need to create a `falcon.rb` configuration in the root of your applications, and start the virtual host:
126126

127127
~~~ bash
128-
$ cat /srv/http/example.com/falcon.rb
129-
#!/usr/bin/env -S falcon host
128+
cat /srv/http/example.com/falcon.rb
129+
#!/usr/bin/env falcon-host
130130

131-
load :rack, :lets_encrypt_tls, :supervisor
131+
require "falcon/environment/self_signed_tls"
132+
require "falcon/environment/rack"
133+
require "falcon/environment/supervisor"
132134

133-
rack 'hello.localhost', :lets_encrypt_tls
135+
service "hello.localhost" do
134136

135-
supervisor
137+
include Falcon::Environment::SelfSignedTLS
138+
include Falcon::Environment::Rack
139+
140+
end
141+
142+
service "supervisor" do
143+
include Falcon::Environment::Supervisor
144+
end
136145

137-
$ falcon virtual /srv/http/example.com/falcon.rb
146+
$ falcon virtual /srv/http/*/falcon.rb
138147
~~~
139148

140149
The Falcon virtual server is hard coded to redirect http traffic to https, and will serve each application using an internal SNI-based proxy.
150+
See the [docker example](https://github.com/socketry/falcon-virtual-docker-example).

0 commit comments

Comments
 (0)