From f45f2395e50ba4cb6dfa8ba013b5f8fdf1f2cfe4 Mon Sep 17 00:00:00 2001 From: Elliot Braem Date: Fri, 17 Jan 2025 20:48:31 -0700 Subject: [PATCH] 80 and 443 --- fly.toml | 9 +++++++-- litefs.yml | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/fly.toml b/fly.toml index 9d5a271..f1a6b7b 100644 --- a/fly.toml +++ b/fly.toml @@ -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" diff --git a/litefs.yml b/litefs.yml index 8a2d773..f2fc7c6 100644 --- a/litefs.yml +++ b/litefs.yml @@ -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