This commit is contained in:
Atridad Lahiji 2024-11-10 23:17:39 -07:00
parent 47e09e336c
commit b208357578
Signed by: atridad
SSH key fingerprint: SHA256:LGomp8Opq0jz+7kbwNcdfTcuaLRb5Nh0k5AchDDb438
2 changed files with 73 additions and 0 deletions

48
fly/gitea/fly.toml Normal file
View file

@ -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

25
fly/uptimekuma/fly.toml Normal file
View file

@ -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'