From 5c32126d39521efca1c3c5b836ca2d42edede6e0 Mon Sep 17 00:00:00 2001 From: Zhang Rui Date: Tue, 28 Mar 2023 16:45:52 +0800 Subject: tinyproxy: Update to 1.11.1 Signed-off-by: Zhang Rui --- net/tinyproxy/files/tinyproxy.config | 7 +++++++ net/tinyproxy/files/tinyproxy.init | 10 ++++++++++ 2 files changed, 17 insertions(+) (limited to 'net/tinyproxy/files') diff --git a/net/tinyproxy/files/tinyproxy.config b/net/tinyproxy/files/tinyproxy.config index ac7b46ff0..e62ce1cf0 100644 --- a/net/tinyproxy/files/tinyproxy.config +++ b/net/tinyproxy/files/tinyproxy.config @@ -63,6 +63,13 @@ option DefaultErrorFile "/usr/share/tinyproxy/default.html" # option StatFile "/usr/share/tinyproxy/stats.html" +# +# BasicAuth: Tinyproxy server operators may want to not run an "open" proxy +# for the whole world, but rather limit usage to a smaller goup +# of users. They then put the line. +# +#option BasicAuth "username password" + # # Where to log the information. Either LogFile or Syslog should be set, # but not both. diff --git a/net/tinyproxy/files/tinyproxy.init b/net/tinyproxy/files/tinyproxy.init index 1feac669c..4afdae6aa 100644 --- a/net/tinyproxy/files/tinyproxy.init +++ b/net/tinyproxy/files/tinyproxy.init @@ -55,6 +55,14 @@ proxy_string() { } } +proxy_m_string() { + local SECTION=$1 + local OPTION=$2 + + config_get _value "$SECTION" "$OPTION" + [ -n "$_value" ] && echo "${ALIAS:-${OPTION}} ""$_value" +} + proxy_flag() { local SECTION=$1 local OPTION=$2 @@ -108,6 +116,8 @@ start_proxy() { proxy_string "$1" StatFile proxy_string "$1" LogFile + proxy_m_string "$1" BasicAuth + proxy_flag "$1" Syslog proxy_atom "$1" LogLevel -- cgit v1.2.3