Use new config envvar

This commit is contained in:
Roberto Alsina 2024-07-06 12:54:49 -03:00
parent eedad69f72
commit c28239295f
2 changed files with 2 additions and 3 deletions

View File

@ -6,7 +6,7 @@
http://*:8888 { http://*:8888 {
basicauth /admin/* { basicauth /admin/* {
admin {$HTTP_BASIC_AUTH_PASSWORD} admin {$FAASO_PASSWORD}
} }
handle_path /admin/terminal/* { handle_path /admin/terminal/* {

View File

@ -2,7 +2,6 @@ require "docr"
require "./funko.cr" require "./funko.cr"
require "kemal" require "kemal"
module Proxy module Proxy
CADDY_CONFIG_PATH = "config/Caddyfile" CADDY_CONFIG_PATH = "config/Caddyfile"
@@current_config = File.read(CADDY_CONFIG_PATH) @@current_config = File.read(CADDY_CONFIG_PATH)
@ -32,7 +31,7 @@ module Proxy
http://*:8888 { http://*:8888 {
basicauth /admin/* { basicauth /admin/* {
admin {$HTTP_BASIC_AUTH_PASSWORD} admin {$FAASO_PASSWORD}
} }
handle_path /admin/terminal/* { handle_path /admin/terminal/* {