From 5961f8b0a114b12eb7f8e4b325bec3cbcbba34d8 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Tue, 2 Jul 2024 10:40:36 -0300 Subject: [PATCH] Add UserName to tinyproxy conf --- src/daemon/proxyconf.cr | 2 ++ tinyproxy.conf | 18 +++++++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/daemon/proxyconf.cr b/src/daemon/proxyconf.cr index 03efe85..0a55560 100644 --- a/src/daemon/proxyconf.cr +++ b/src/daemon/proxyconf.cr @@ -1,3 +1,4 @@ +require "docr" require "kemal" module Proxy @@ -29,6 +30,7 @@ module Proxy funkos.sort! config = %( + UserName nobody Port 8888 Listen 0.0.0.0 Timeout 600 diff --git a/tinyproxy.conf b/tinyproxy.conf index cf1e0e5..b384ca6 100644 --- a/tinyproxy.conf +++ b/tinyproxy.conf @@ -1,9 +1,9 @@ - - Port 8888 - Listen 0.0.0.0 - Timeout 600 - Allow 0.0.0.0/0 - ReverseOnly Yes - ReverseMagic Yes - ReversePath "/admin/" "http://127.0.0.1:3000/" - \ No newline at end of file +UserName nobody +Port 8888 +Listen 0.0.0.0 +Timeout 600 +Allow 0.0.0.0/0 +ReverseOnly Yes +ReverseMagic Yes +ReversePath "/admin/" "http://127.0.0.1:3000/" +ReversePath "/faaso/hello/" "http://hello:3000/" \ No newline at end of file