Use new config envvar
This commit is contained in:
parent
eedad69f72
commit
c28239295f
@ -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/* {
|
||||||
|
@ -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/* {
|
||||||
|
Loading…
Reference in New Issue
Block a user