From b208357578e04717131d2852632a95d0b6579c18 Mon Sep 17 00:00:00 2001 From: Atridad Lahiji Date: Sun, 10 Nov 2024 23:17:39 -0700 Subject: [PATCH] Fly apps --- fly/gitea/fly.toml | 48 +++++++++++++++++++++++++++++++++++++++++ fly/uptimekuma/fly.toml | 25 +++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 fly/gitea/fly.toml create mode 100644 fly/uptimekuma/fly.toml diff --git a/fly/gitea/fly.toml b/fly/gitea/fly.toml new file mode 100644 index 0000000..6ea3155 --- /dev/null +++ b/fly/gitea/fly.toml @@ -0,0 +1,48 @@ +# fly.toml app configuration file generated for atrigit on 2024-11-09T01:42:12-07:00 +# +# See https://fly.io/docs/reference/configuration/ for information about how to use this file. +# + +app = 'atrigit' +primary_region = 'sea' +kill_timeout = '5s' + +[build] + image = 'gitea/gitea:latest' + +[env] + GITEA__database__DB_TYPE = 'sqlite3' + GITEA__database__PATH = '/data/gitea/gitea.db' + GITEA__security__INSTALL_LOCK = 'true' + GITEA__server__DOMAIN = 'git.atri.dad' + GITEA__server__ROOT_URL = 'https://git.atri.dad' + GITEA__server__SSH_DOMAIN = 'git.atri.dad' + +[[mounts]] + source = 'gitea_data' + destination = '/data' + +[[services]] + protocol = 'tcp' + internal_port = 22 + + [[services.ports]] + port = 22 + +[[services]] + protocol = 'tcp' + internal_port = 3000 + + [[services.ports]] + port = 80 + handlers = ['http'] + force_https = true + + [[services.ports]] + port = 443 + handlers = ['tls', 'http'] + +[[vm]] + memory = '512mb' + cpu_kind = 'shared' + cpus = 1 diff --git a/fly/uptimekuma/fly.toml b/fly/uptimekuma/fly.toml new file mode 100644 index 0000000..dad7bd2 --- /dev/null +++ b/fly/uptimekuma/fly.toml @@ -0,0 +1,25 @@ +# fly.toml app configuration file generated for atri-uptime on 2024-10-29T00:49:54-06:00 +# +# See https://fly.io/docs/reference/configuration/ for information about how to use this file. +# + +app = 'atri-uptime' +primary_region = 'sea' + +[build] +image = 'louislam/uptime-kuma:1' + +[[mounts]] +source = 'kuma_data' +destination = '/app/data' + +[http_service] +internal_port = 3001 +force_https = true +auto_stop_machines = 'off' +auto_start_machines = true +min_machines_running = 1 +processes = ['app'] + +[[vm]] +size = 'shared-cpu-1x'