Skip to content

Commit

Permalink
80 and 443
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed Jan 18, 2025
1 parent 6f70591 commit f45f239
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,20 @@ primary_region = 'den'

[[services]]
protocol = "tcp"
internal_port = 8080 # proxy
internal_port = 8080 # proxy to 3000
auto_stop_machines = 'suspend'
auto_start_machines = true
min_machines_running = 0
processes = ['app']

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

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

[[services.http_checks]]
interval = "30s"
Expand Down
2 changes: 1 addition & 1 deletion litefs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ proxy:
# the last command to be long-running (e.g. an application server). When the
# last command exits, LiteFS is shut down.
exec:
- cmd: "bun run db:up"
- cmd: "bun run db:push"
- cmd: "bun run start"

# The lease section specifies how the cluster will be managed. We're using the
Expand Down

0 comments on commit f45f239

Please sign in to comment.