diff options
| author | Franck Cuny <franck@fcuny.net> | 2021-08-12 13:53:33 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2021-08-12 15:46:24 -0700 |
| commit | aa80df2b26c7455007d3db96f01bfde66c6779df (patch) | |
| tree | 00cc4724a8362d0edad8de1f13be408f1df17ba6 /tools/govanity/fly.toml | |
| parent | config: replace homelab with tools (diff) | |
| download | infra-aa80df2b26c7455007d3db96f01bfde66c6779df.tar.gz | |
build: deploy to fly
Don't deploy to Google App anymore, but use fly.io instead.
Add steps to the Makefile to build a docker image, and to deploy the
application to fly.io.
Diffstat (limited to 'tools/govanity/fly.toml')
| -rw-r--r-- | tools/govanity/fly.toml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tools/govanity/fly.toml b/tools/govanity/fly.toml new file mode 100644 index 0000000..286cd1e --- /dev/null +++ b/tools/govanity/fly.toml @@ -0,0 +1,34 @@ +app = "golang-fcuny-net" + +kill_signal = "SIGINT" +kill_timeout = 5 + +[env] + +[experimental] + allowed_public_ports = [] + auto_rollback = true + +[[services]] + internal_port = 8080 + protocol = "tcp" + script_checks = [] + + [services.concurrency] + hard_limit = 25 + soft_limit = 20 + 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" |
