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;
125
125
You need to create a ` falcon.rb ` configuration in the root of your applications, and start the virtual host:
126
126
127
127
~~~ 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
130
130
131
- load :rack, :lets_encrypt_tls, :supervisor
131
+ require " falcon/environment/self_signed_tls"
132
+ require " falcon/environment/rack"
133
+ require " falcon/environment/supervisor"
132
134
133
- rack ' hello.localhost' , :lets_encrypt_tls
135
+ service " hello.localhost" do
134
136
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
136
145
137
- $ falcon virtual /srv/http/example.com /falcon.rb
146
+ $ falcon virtual /srv/http/* /falcon.rb
138
147
~~~
139
148
140
149
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 ) .
You can’t perform that action at this time.
0 commit comments