fly-apps/forgejo/fly.toml
2024-08-07 03:14:41 -04:00

87 lines
2.7 KiB
TOML

# fly.toml app configuration file generated for burd-infra-forgejo on 2023-10-17T16:24:22-04:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = "burd-infra-forgejo"
primary_region = "bos"
kill_signal = "SIGINT"
kill_timeout = "5s"
swap_size_mb = 512
[experimental]
auto_rollback = true
[build]
image = "codeberg.org/forgejo/forgejo:8.0.0"
[env]
GITEA____APP_NAME = "git.burd.me: Git for us"
GITEA__database__DB_TYPE = "sqlite3"
GITEA__database__PATH = "/data/gitea/gitea.db"
GITEA__federation__ENABLED = "true"
GITEA__mailer__ENABLED = "false"
GITEA__mailer__FROM = "noreply@git.burd.me"
GITEA__mailer__PROTOCOL = "sendmail"
GITEA__mailer__SUBJECT_PREFIX = "git.burd.me"
GITEA__security__INSTALL_LOCK = "true"
GITEA__server__DOMAIN = "git.burd.me"
GITEA__server__LANDING_PAGE = "/greg"
GITEA__server__ROOT_URL = "https://git.burd.me"
GITEA__server__SSH_DOMAIN = "git.burd.me"
GITEA__service__DEFAULT_KEEP_EMAIL_PRIVATE = "true"
GITEA__service__DEFAULT_USER_IS_RESTRICTED = "true"
GITEA__service__DISABLE_REGISTRATION = "true" # NOTE: should be uncomment once you have created your first user
GITEA__service__REGISTER_EMAIL_CONFIRM = "false"
GITEA__service__REGISTER_MANUAL_CONFIRM = "true"
"GITEA__ui.meta__AUTHOR" = "git.burd.me: Git for us"
GITEA__ui__DEFAULT_THEME = "forgejo-auto"
# GITEA__log__MODE = "console"
# GITEA__log__LEVEL = "trace"
# GITEA__log__REDIRECT_MACARON_LOG = "true"
# GITEA__log__MACARON = "console"
# GITEA__log__ROUTER = "console"
# GITEA__log__ROOT_PATH = "/data/gitea/log"
# Storage in S3 bucket
# NOTE: MINIO_BASE_PATH must *not* be set in the [storage] section.
GITEA__storage__STORAGE_TYPE = "minio"
GITEA__storage__MINIO_USE_SSL = "true"
GITEA__storage__MINIO_ENDPOINT = "s3.us-west-000.backblazeb2.com"
# GITEA__storage__MINIO_ACCESS_KEY_ID = [use fly secrets set ..., see README.md]
# GITEA__storage__MINIO_SECRET_ACCESS_KEY = [use fly secrets set ..., see README.md]
GITEA__storage__MINIO_BUCKET = "burd-infra-forgejo-4276-a538"
GITEA__storage__MINIO_LOCATION = "us-west-000"
GITEA__storage__MINIO_CHECKSUM_ALGORITHM = "md5"
[[mounts]]
source = "forgejo_data"
destination = "/data"
processes = ["app"]
[[services]]
protocol = "tcp"
internal_port = 22
[[services.ports]]
port = 22
[services.concurrency]
type = "connections"
hard_limit = 25
soft_limit = 20
[[services]]
protocol = "tcp"
internal_port = 3000
[[services.ports]]
port = 80
handlers = ["http"]
force_https = true
[[services.ports]]
port = 443
handlers = ["tls", "http"]
[services.concurrency]
type = "connections"
hard_limit = 25
soft_limit = 20