From 3646cb177729c8e6f41990411df900ba06179652 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Thu, 4 Jul 2024 11:19:24 -0300 Subject: [PATCH] Show frontend on / --- src/daemon/main.cr | 4 ++++ src/main.cr | 4 ++-- tinyproxy.conf | 1 - 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/daemon/main.cr b/src/daemon/main.cr index fb727e4..9724b7d 100644 --- a/src/daemon/main.cr +++ b/src/daemon/main.cr @@ -11,4 +11,8 @@ require "uuid" # FIXME: make configurable basic_auth "admin", "admin" +get "/" do |env| + env.redirect "index.html" +end + Kemal.run diff --git a/src/main.cr b/src/main.cr index cc2719f..094885b 100644 --- a/src/main.cr +++ b/src/main.cr @@ -37,8 +37,8 @@ doc = <<-DOC FaaSO CLI tool. Usage: - faaso build FOLDER ... [-v=] [-l] - faaso scale FUNKO [SCALE] [-v=] [-l] + faaso build FOLDER ... [-v=] [-l] + faaso scale FUNKO [SCALE] [-v=] [-l] faaso status FUNKO [-v=] [-l] faaso export SOURCE DESTINATION [-v=] faaso secret [-d|-a] FUNKO SECRET [-v=] [-l] diff --git a/tinyproxy.conf b/tinyproxy.conf index d4619fb..7931997 100644 --- a/tinyproxy.conf +++ b/tinyproxy.conf @@ -8,4 +8,3 @@ ReverseOnly Yes ReverseMagic Yes ReversePath "/admin/" "http://127.0.0.1:3000/" - ReversePath "/faaso/hello/" "http://hello-c9ge0d:3000/" \ No newline at end of file