diff --git a/fly.toml b/fly.toml new file mode 100644 index 0000000..17a3320 --- /dev/null +++ b/fly.toml @@ -0,0 +1,29 @@ +app = "git-pr" +primary_region = "iad" + +[build] + dockerfile = "Dockerfile" + +[env] + GITEA__server__DOMAIN = "git-pr.fly.dev" + GITEA__server__ROOT_URL = "https://git-pr.fly.dev/" + GITEA__mailer__ENABLED = "true" + GITEA__mailer__HOST = "${SMTP_HOST}" + GITEA__mailer__USER = "${SMTP_USER}" + GITEA__mailer__PASSWD = "${SMTP_PASSWD}" + GITEA__mailer__FROM = "${SMTP_FROM}" + +[[mounts]] + source = "gitea_data" + destination = "/data" + +[[services]] + internal_port = 8080 + processes = ["app"] + protocol = "tcp" + [[services.ports]] + handlers = ["http"] + port = 80 + [[services.ports]] + handlers = ["tls", "http"] + port = 443