Skip to content

Commit

Permalink
feat: healthcheck
Browse files Browse the repository at this point in the history
feat: serve statics without node on flyio
  • Loading branch information
barakplasma committed Aug 28, 2021
1 parent 7574683 commit 0e10dc6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ kill_timeout = 5
[build.args]
NODE_ENV_ARG="production"

[[statics]]
guest_path = "/app/client"
url_prefix = "/client"

[env]
CORS_ORIGIN = '["https://chisoonnumber.fly.dev","https://barakplasma.github.io"]'
NODE_ENV = "production"
Expand All @@ -32,3 +36,12 @@ kill_timeout = 5
[[services.tcp_checks]]
interval = 10000
timeout = 2000

[[services.http_checks]]
interval = 10000
grace_period = "5s"
method = "get"
path = "/healthcheck"
protocol = "http"
timeout = 2000
tls_skip_verify = false

0 comments on commit 0e10dc6

Please sign in to comment.