aboutsummaryrefslogtreecommitdiff
path: root/net/tinyproxy/files
diff options
context:
space:
mode:
authorZhang Rui <rui.crater@gmail.com>2023-03-28 16:45:52 +0800
committerTianling Shen <cnsztl@gmail.com>2023-04-05 23:47:30 +0800
commit5c32126d39521efca1c3c5b836ca2d42edede6e0 (patch)
treea6c811a5070d34656c695b51fa8325fb865e4316 /net/tinyproxy/files
parent1ee71d4a1a6321ff8d2c0fccd7e4486998c60d19 (diff)
tinyproxy: Update to 1.11.1
Signed-off-by: Zhang Rui <rui.crater@gmail.com>
Diffstat (limited to 'net/tinyproxy/files')
-rw-r--r--net/tinyproxy/files/tinyproxy.config7
-rw-r--r--net/tinyproxy/files/tinyproxy.init10
2 files changed, 17 insertions, 0 deletions
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
@@ -64,6 +64,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