Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker-unbound
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
obi12341
docker-unbound
Commits
15418347
Commit
15418347
authored
1 year ago
by
Patrick Oberdorf
Browse files
Options
Downloads
Patches
Plain Diff
add remote control env var
parent
f1189a95
Branches
Branches containing commit
Tags
3.4.0
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+1
-0
1 addition, 0 deletions
README.md
assets/unbound.conf
+1
-1
1 addition, 1 deletion
assets/unbound.conf
start.sh
+2
-0
2 additions, 0 deletions
start.sh
with
4 additions
and
1 deletion
README.md
+
1
−
0
View file @
15418347
...
@@ -37,3 +37,4 @@ These options can be set via the environment variable -e flag:
...
@@ -37,3 +37,4 @@ These options can be set via the environment variable -e flag:
-
**STATISTICS_CUMULATIVE**
: enable cumulative statistics, without clearing them after printing. (Default: "no", Possible Values: "yes, no")
-
**STATISTICS_CUMULATIVE**
: enable cumulative statistics, without clearing them after printing. (Default: "no", Possible Values: "yes, no")
-
**EXTENDED_STATISTICS**
: enable extended statistics (query types, answer codes, status) printed from unbound-control. (Default: "no", Possible Values: "yes, no")
-
**EXTENDED_STATISTICS**
: enable extended statistics (query types, answer codes, status) printed from unbound-control. (Default: "no", Possible Values: "yes, no")
-
**INTERFACE**
: Sets the interface to listen on useful when using --net=host (Default 0.0.0.0, Possible Values: "
<ipaddress>
", "
<ipaddress>
@
<port>
")
-
**INTERFACE**
: Sets the interface to listen on useful when using --net=host (Default 0.0.0.0, Possible Values: "
<ipaddress>
", "
<ipaddress>
@
<port>
")
-
**REMOTE_CONTROL_ENABLE**
: Enable the remote control feature (Default "yes", Possible Values: "yes, no")
This diff is collapsed.
Click to expand it.
assets/unbound.conf
+
1
−
1
View file @
15418347
...
@@ -593,7 +593,7 @@ python:
...
@@ -593,7 +593,7 @@ python:
remote
-
control
:
remote
-
control
:
# Enable remote control with unbound-control(8) here.
# Enable remote control with unbound-control(8) here.
# set up the keys and certificates with unbound-control-setup.
# set up the keys and certificates with unbound-control-setup.
control
-
enable
:
yes
control
-
enable
:
{{
REMOTE_CONTROL_ENABLE
}}
# Set to no and use an absolute path as control-interface to use
# Set to no and use an absolute path as control-interface to use
# a unix local named pipe for unbound-control.
# a unix local named pipe for unbound-control.
...
...
This diff is collapsed.
Click to expand it.
start.sh
+
2
−
0
View file @
15418347
...
@@ -22,6 +22,7 @@ STATISTICS_INTERVAL=${STATISTICS_INTERVAL:-0}
...
@@ -22,6 +22,7 @@ STATISTICS_INTERVAL=${STATISTICS_INTERVAL:-0}
STATISTICS_CUMULATIVE
=
${
STATISTICS_CUMULATIVE
:-
no
}
STATISTICS_CUMULATIVE
=
${
STATISTICS_CUMULATIVE
:-
no
}
EXTENDED_STATISTICS
=
${
EXTENDED_STATISTICS
:-
no
}
EXTENDED_STATISTICS
=
${
EXTENDED_STATISTICS
:-
no
}
INTERFACE
=
${
INTERFACE
:-
0
.0.0.0
}
INTERFACE
=
${
INTERFACE
:-
0
.0.0.0
}
REMOTE_CONTROL_ENABLE
=
${
REMOTE_CONTROL_ENABLE
:-
yes
}
sed
's/{{DO_IPV6}}/'
"
${
DO_IPV6
}
"
'/'
-i
/usr/local/etc/unbound/unbound.conf
sed
's/{{DO_IPV6}}/'
"
${
DO_IPV6
}
"
'/'
-i
/usr/local/etc/unbound/unbound.conf
...
@@ -46,5 +47,6 @@ sed 's/{{STATISTICS_INTERVAL}}/'"${STATISTICS_INTERVAL}"'/' -i /usr/local/etc/un
...
@@ -46,5 +47,6 @@ sed 's/{{STATISTICS_INTERVAL}}/'"${STATISTICS_INTERVAL}"'/' -i /usr/local/etc/un
sed
's/{{STATISTICS_CUMULATIVE}}/'
"
${
STATISTICS_CUMULATIVE
}
"
'/'
-i
/usr/local/etc/unbound/unbound.conf
sed
's/{{STATISTICS_CUMULATIVE}}/'
"
${
STATISTICS_CUMULATIVE
}
"
'/'
-i
/usr/local/etc/unbound/unbound.conf
sed
's/{{EXTENDED_STATISTICS}}/'
"
${
EXTENDED_STATISTICS
}
"
'/'
-i
/usr/local/etc/unbound/unbound.conf
sed
's/{{EXTENDED_STATISTICS}}/'
"
${
EXTENDED_STATISTICS
}
"
'/'
-i
/usr/local/etc/unbound/unbound.conf
sed
's/{{INTERFACE}}/'
"
${
INTERFACE
}
"
'/'
-i
/usr/local/etc/unbound/unbound.conf
sed
's/{{INTERFACE}}/'
"
${
INTERFACE
}
"
'/'
-i
/usr/local/etc/unbound/unbound.conf
sed
's/{{REMOTE_CONTROL_ENABLE}}/'
"
${
REMOTE_CONTROL_ENABLE
}
"
'/'
-i
/usr/local/etc/unbound/unbound.conf
exec
/usr/local/sbin/unbound
-c
/usr/local/etc/unbound/unbound.conf
-d
-v
exec
/usr/local/sbin/unbound
-c
/usr/local/etc/unbound/unbound.conf
-d
-v
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment