falcon 0.52.2 → 0.52.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0967ef764ac13d234647007c5e209941c431a6f39818a8814936cb6cc0187b26'
4
- data.tar.gz: efa9ede4c4d5f47db5e226df606d65d94d13b2499f12fa206684f902eb35eb6a
3
+ metadata.gz: 0f0eb04a60a0e8100f830405fc1a55fa3cc1a31f8b8ad76922aba21c8bfc6796
4
+ data.tar.gz: 9491638bdf672c83ad490af7e192dabc903d5743061fa4fa95228f8fe195e772
5
5
  SHA512:
6
- metadata.gz: 281ea0eb27895d276dcc85b5ace7465de4022047efd86132bd6ec0670be96cc16879a256bdbbd00765f0f45c658b9240dbf4974acce8e3219522eb77e8b4ad6e
7
- data.tar.gz: 636d1d97dfe9313081a922f6fef956a6a9fe7335b8cd203ca6038765c84fe5616fc4e27d7651006bd633fb73c06e98af1c94a558bf290f9ca74ec30e9dc6bbf4
6
+ metadata.gz: d4068f413136896989dabcf1642040a2dfc118176968aa91b249cfecf055801823df0f40912b774008c99ac2e2a87b178e842d54368458c0d6595ad8dcc36f6c
7
+ data.tar.gz: 1078328b527bfd6ec35041dfbd9e542d0b0a2c0018850bdf447ad6160d190ee9ad876d64b222b4dec571b8f56f2550c26a171190e0c8f060fd4a959b236089d0
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,6 +1,6 @@
1
1
  # Deployment
2
2
 
3
- This guide explains how to use Falcon in production environments.
3
+ This guide explains how to deploy applications using the Falcon web server. It covers the recommended deployment methods, configuration options, and examples for different environments, including systemd and kubernetes.
4
4
 
5
5
  Falcon can be deployed into production either as a standalone application server, or as a virtual host routing to multiple applications. Both configurations can run behind a load balancer, but `falcon virtual` is designed to be zero-configuration deployment option.
6
6
 
@@ -145,6 +145,50 @@ service hostname do
145
145
  require_relative "config/environment"
146
146
  ~~~
147
147
 
148
+ ### Kubernetes Integration
149
+
150
+ Falcon can be deployed in a Kubernetes cluster using the `falcon host` command. You can use the following example to create a Kubernetes deployment for Falcon:
151
+
152
+ ```yaml
153
+ apiVersion: apps/v1
154
+ kind: Deployment
155
+ metadata:
156
+ name: falcon
157
+ spec:
158
+ replicas: 1
159
+ selector:
160
+ matchLabels:
161
+ app: falcon
162
+ template:
163
+ metadata:
164
+ labels:
165
+ app: falcon
166
+ spec:
167
+ containers:
168
+ - name: my-app
169
+ image: my-app-image:latest
170
+ env:
171
+ - name: NOTIFY_LOG
172
+ value: "/tmp/notify.log"
173
+ ports:
174
+ - containerPort: 9292
175
+ readinessProbe:
176
+ exec:
177
+ command: ["bundle", "exec", "bake", "async:container:notify:log:ready?"]
178
+ initialDelaySeconds: 5
179
+ periodSeconds: 5
180
+ failureThreshold: 12
181
+
182
+ # Assuming you are running Rails and have bound to port 3000:
183
+ livenessProbe:
184
+ httpGet:
185
+ path: /up
186
+ port: 3000
187
+ initialDelaySeconds: 10
188
+ periodSeconds: 10
189
+ failureThreshold: 3
190
+ ```
191
+
148
192
  ## Falcon Virtual
149
193
 
150
194
  Falcon virtual provides a virtual host proxy and HTTP-to-HTTPS redirection for multiple applications. It is designed to be a zero-configuration deployment option, allowing you to run multiple applications on the same server.
@@ -164,3 +208,23 @@ falcon virtual /srv/http/*/falcon.rb
164
208
  By default, it binds to both HTTP and HTTPS ports, and automatically redirects HTTP requests to HTTPS. It also supports TLS SNI for resolving the certificates.
165
209
 
166
210
  See the [docker example](https://github.com/socketry/falcon-virtual-docker-example) for a complete working example.
211
+
212
+ ### systemd Service File
213
+
214
+ You can create a systemd service file to manage the Falcon virtual service. Here is an example of a systemd service file for Falcon:
215
+
216
+ ```ini
217
+ [Unit]
218
+ Description=Falcon Virtual Service
219
+ After=network.target
220
+
221
+ [Service]
222
+ Type=notify
223
+ User=http
224
+ WorkingDirectory=/srv/http
225
+ ExecStart=/usr/local/bin/falcon virtual /srv/http/*/falcon.rb
226
+ Restart=always
227
+
228
+ [Install]
229
+ WantedBy=multi-user.target
230
+ ```
data/context/index.yaml CHANGED
@@ -15,7 +15,9 @@ files:
15
15
  description: This guide explains how to host Rails applications with Falcon.
16
16
  - path: deployment.md
17
17
  title: Deployment
18
- description: This guide explains how to use Falcon in production environments.
18
+ description: This guide explains how to deploy applications using the Falcon web
19
+ server. It covers the recommended deployment methods, configuration options, and
20
+ examples for different environments, including systemd and kubernetes.
19
21
  - path: performance-tuning.md
20
22
  title: Performance Tuning
21
23
  description: This guide explains the performance characteristics of Falcon.
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2017-2025, by Samuel Williams.
5
5
 
6
6
  module Falcon
7
- VERSION = "0.52.2"
7
+ VERSION = "0.52.3"
8
8
  end
data/readme.md CHANGED
@@ -33,7 +33,7 @@ Please see the [project documentation](https://socketry.github.io/falcon/) for m
33
33
 
34
34
  - [Rails Integration](https://socketry.github.io/falcon/guides/rails-integration/index) - This guide explains how to host Rails applications with Falcon.
35
35
 
36
- - [Deployment](https://socketry.github.io/falcon/guides/deployment/index) - This guide explains how to use Falcon in production environments.
36
+ - [Deployment](https://socketry.github.io/falcon/guides/deployment/index) - This guide explains how to deploy applications using the Falcon web server. It covers the recommended deployment methods, configuration options, and examples for different environments, including systemd and kubernetes.
37
37
 
38
38
  - [Performance Tuning](https://socketry.github.io/falcon/guides/performance-tuning/index) - This guide explains the performance characteristics of Falcon.
39
39
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: falcon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.52.2
4
+ version: 0.52.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file