Skip to content

Commit

Permalink
Add support for fly.io
Browse files Browse the repository at this point in the history
  • Loading branch information
frafra committed May 12, 2022
1 parent 2dd8a08 commit b7e524e
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
41 changes: 41 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
app = "is-osm-uptodate"

kill_signal = "SIGINT"
kill_timeout = 5

[env]
REDIS_HOST = "is-osm-uptodate-redis.internal"

[[statics]]
guest_path = "/web"
url_prefix = "/"

[experimental]
allowed_public_ports = []
auto_rollback = true

[[services]]
http_checks = []
internal_port = 8000
protocol = "tcp"
script_checks = []

[services.concurrency]
hard_limit = 4096
soft_limit = 256
type = "connections"

[[services.ports]]
handlers = ["http"]
port = 80

[[services.ports]]
handlers = ["tls", "http"]
port = 443

[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 6
timeout = "2s"

31 changes: 31 additions & 0 deletions redis/fly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# fly.toml file generated for is-osm-uptodate-redis on 2022-05-11T19:29:49+02:00

app = "is-osm-uptodate-redis"

kill_signal = "SIGINT"
kill_timeout = 5
processes = []

[env]

[experimental]
allowed_public_ports = []
auto_rollback = true

[[services]]
http_checks = []
internal_port = 6379
processes = ["app"]
protocol = "tcp"
script_checks = []

[services.concurrency]
hard_limit = 64
soft_limit = 32
type = "connections"

[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"

0 comments on commit b7e524e

Please sign in to comment.