From bbfa23a1427919e2ddc1bfb08e1009e75a4a7f6c Mon Sep 17 00:00:00 2001 From: fukayatti0 Date: Sun, 20 Oct 2024 17:33:54 +0900 Subject: [PATCH] =?UTF-8?q?fly.toml=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB?= =?UTF-8?q?=E3=81=8B=E3=82=89build=E3=81=AE=E9=A0=85=E7=9B=AE=E3=82=92?= =?UTF-8?q?=E5=89=8A=E9=99=A4=E3=81=97=E3=81=BE=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 3 +++ fly.toml | 55 ++++++++++++++++++++++++++++++--------------------- 2 files changed, 35 insertions(+), 23 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..9536203 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +# flyctl launch added from .gitignore +**/.env +fly.toml diff --git a/fly.toml b/fly.toml index 9aa3925..e17d7c0 100644 --- a/fly.toml +++ b/fly.toml @@ -1,38 +1,47 @@ -app = "Closed-Lecture-NITIC" -kill_signal = "SIGINT" -kill_timeout = 5 +# fly.toml app configuration file generated for closed-lecture-nitic-empty-feather-1836 on 2024-10-20T17:26:26+09:00 +# +# See https://fly.io/docs/reference/configuration/ for information about how to use this file. +# -[build] - dockerfile = "Dockerfile" - -[env] +app = 'closed-lecture-nitic-empty-feather-1836' +primary_region = 'nrt' +kill_signal = 'SIGINT' +kill_timeout = '5s' [experimental] auto_rollback = true -[[services]] - http_checks = [] +[http_service] internal_port = 8080 - processes = ["app"] - protocol = "tcp" - script_checks = [] + force_https = true + auto_stop_machines = 'stop' + auto_start_machines = true + min_machines_running = 0 + processes = ['app'] - [services.concurrency] - hard_limit = 25 - soft_limit = 20 - type = "connections" +[[services]] + protocol = 'tcp' + internal_port = 8080 + processes = ['app'] [[services.ports]] - force_https = true - handlers = ["http"] port = 80 + handlers = ['http'] + force_https = true [[services.ports]] - handlers = ["tls", "http"] port = 443 + handlers = ['tls', 'http'] + + [services.concurrency] + type = 'connections' + hard_limit = 25 + soft_limit = 20 [[services.tcp_checks]] - grace_period = "1s" - interval = "15s" - restart_limit = 0 - timeout = "2s" + interval = '15s' + timeout = '2s' + grace_period = '1s' + +[[vm]] + size = 'shared-cpu-1x'