Skip to content

Instantly share code, notes, and snippets.

@zikes
Created February 9, 2023 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zikes/d930069b8d9a1f9b7d901d8e27354fe3 to your computer and use it in GitHub Desktop.
Save zikes/d930069b8d9a1f9b7d901d8e27354fe3 to your computer and use it in GitHub Desktop.
Gitea fly.toml config
# fly.toml file generated for gitea-zikes-services on 2022-09-04T16:49:56-05:00
app = "gitea-zikes-services"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
[build]
image = "gitea/gitea:1.18.3"
[env]
GITEA____APP_NAME = "git.zikes.me: Gitea for me"
GITEA__database__DB_TYPE = "sqlite3"
GITEA__database__PATH = "/data/gitea/gitea.db"
GITEA__server__DOMAIN = "git.zikes.me"
GITEA__server__SSH_DOMAIN = "git.zikes.me"
GITEA__server__ROOT_URL = "https://git.zikes.me"
GITEA__security__INSTALL_LOCK = "true" # Comment or remove for initial deploy, re-enable after setup is complete
GITEA__service__DISABLE_REGISTRATION = "true"
GITEA__repository__ROOT = "/data/gitea/repositories"
GITEA__repository__ENABLE_PUSH_CREATE_USER = "true"
GITEA__repository__ENABLE_PUSH_CREATE_ORG = "true"
[[mounts]]
destination = "/data"
source = "gitea_data" # Should match name of mount volume created via `flyctl volumes create`
[experimental]
allowed_public_ports = []
auto_rollback = true
[[services]]
internal_port = 22
protocol = "tcp"
[[services.ports]]
port = 22
[[services]]
internal_port = 3000
protocol = "tcp"
[[services.ports]]
handlers = ["http"]
force_https = true
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment