From 7c004ac41c33d2d993205d8e1c29ddbeb6133c7d Mon Sep 17 00:00:00 2001 From: Guntis Smaukstelis Date: Tue, 16 May 2023 14:20:36 +0300 Subject: [PATCH] Back to https for fly.io --- fly.toml | 20 ++++++++++++++++++-- web/.env.production | 2 +- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/fly.toml b/fly.toml index 74e3344..cc494ae 100644 --- a/fly.toml +++ b/fly.toml @@ -8,7 +8,7 @@ primary_region = "waw" [http_service] internal_port = 8080 - force_https = false + force_https = true auto_stop_machines = false auto_start_machines = true @@ -18,4 +18,20 @@ primary_region = "waw" [scale] count = 1 - idle_timeout = 0 \ No newline at end of file + idle_timeout = 0 + +#[[services]] +# internal_port = 8080 +# protocol = "tcp" + +#[[services.ports]] +# handlers = ["http"] +# port = "80" + +#[[services.ports]] +# handlers = ["tls", "http"] +# port = "443" + +#[[services.tcp_checks]] +# interval = 10000 +# timeout = 2000 \ No newline at end of file diff --git a/web/.env.production b/web/.env.production index bf69970..602ea08 100644 --- a/web/.env.production +++ b/web/.env.production @@ -1 +1 @@ -VITE_API_HOST=http://weather-tool.fly.dev \ No newline at end of file +VITE_API_HOST=https://weather-tool.fly.dev \ No newline at end of file