File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed
Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -125,16 +125,26 @@ graph TD;
125125You 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
140149The 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 ) .
You can’t perform that action at this time.
0 commit comments