Skip to content

Commit

Permalink
fly
Browse files Browse the repository at this point in the history
  • Loading branch information
suciptoid committed Dec 15, 2022
1 parent e9cdd44 commit 4c00e48
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# flyctl launch added from .gitignore
**/vendor
**/.env
**/.goreload
**/miranda-bot
fly.toml
43 changes: 43 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# fly.toml file generated for tux on 2022-12-15T05:29:35Z

app = "tux"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []

[build]
builder = "paketobuildpacks/builder:base"
buildpacks = ["gcr.io/paketo-buildpacks/go"]

[env]
PORT = "8080"

[experimental]
allowed_public_ports = []
auto_rollback = true

[[services]]
http_checks = []
internal_port = 8080
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"

[[services.ports]]
force_https = true
handlers = ["http"]
port = 80

[[services.ports]]
handlers = ["tls", "http"]
port = 443

[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"
1 change: 0 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ func main() {
groupID, _ := strconv.ParseInt(os.Getenv("GROUP_ID"), 10, 64)
config := &config.Configuration{
Port: os.Getenv("PORT"),
UpdateMode: os.Getenv("UPDATE_MODE"),
Token: os.Getenv("TOKEN"),
WebhookURL: os.Getenv("WEBHOOK_URL"),
DBUrl: os.Getenv("DATABASE_URL"),
Expand Down

0 comments on commit 4c00e48

Please sign in to comment.