Beginnings of secret admin w/dialog

This commit is contained in:
2024-07-03 20:54:19 -03:00
parent 1f02e0af11
commit 6d1651f3ec
9 changed files with 152 additions and 16 deletions

View File

@ -39,7 +39,7 @@ module Proxy
ReverseOnly Yes
ReverseMagic Yes
ReversePath "/admin/" "http://127.0.0.1:3000/"
) + funkos.map { |funko| %(ReversePath "/faaso/#{funko}/" "http://#{funko}:3000/") }.join("\n")
) + funkos.map { |funko| %(ReversePath "/faaso/#{funko.split("-")[0]}/" "http://#{funko}:3000/") }.join("\n")
if @@current_config != config
File.open("tinyproxy.conf", "w") do |file|