From c28239295fb5034a7257ddaed563f0cc7693573a Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Sat, 6 Jul 2024 12:54:49 -0300 Subject: [PATCH] Use new config envvar --- config/Caddyfile | 2 +- src/daemon/proxy.cr | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/config/Caddyfile b/config/Caddyfile index 082b626..29669d7 100644 --- a/config/Caddyfile +++ b/config/Caddyfile @@ -6,7 +6,7 @@ http://*:8888 { basicauth /admin/* { - admin {$HTTP_BASIC_AUTH_PASSWORD} + admin {$FAASO_PASSWORD} } handle_path /admin/terminal/* { diff --git a/src/daemon/proxy.cr b/src/daemon/proxy.cr index 9e5fd2c..bb2559c 100644 --- a/src/daemon/proxy.cr +++ b/src/daemon/proxy.cr @@ -2,7 +2,6 @@ require "docr" require "./funko.cr" require "kemal" - module Proxy CADDY_CONFIG_PATH = "config/Caddyfile" @@current_config = File.read(CADDY_CONFIG_PATH) @@ -32,7 +31,7 @@ module Proxy http://*:8888 { basicauth /admin/* { - admin {$HTTP_BASIC_AUTH_PASSWORD} + admin {$FAASO_PASSWORD} } handle_path /admin/terminal/* {