Skip to content

Commit

Permalink
Create flyboot.sh
Browse files Browse the repository at this point in the history
dos2unix
  • Loading branch information
psonnera committed Dec 13, 2023
1 parent edfebe1 commit b24b2c2
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions docs/_static/flyboot.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/bash
######################################################################################################
#
# Nightscout in Fly.io Scripted Deployment
#
######################################################################################################
git clone https://github.com/nightscout/cgm-remote-monitor;cd cgm-remote-monitor;cat > fly.toml << "EOF"
app = "nightscout"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
[env]
PORT = "3000"
[experimental]
allowed_public_ports = []
auto_rollback = true
[[services]]
http_checks = []
internal_port = 3000
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"
EOF

0 comments on commit b24b2c2

Please sign in to comment.