summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriwakeh <iwakeh@torproject.org>2017-08-22 07:41:02 +0000
committeriwakeh <iwakeh@torproject.org>2017-08-22 07:41:02 +0000
commitbd86130b0608ee9fb3cb17e8dd180af752a80465 (patch)
tree685c1e28098b45474a7fd8d6698001b92e0a7338
parent23bf1292718eac23c4c09daf0c2d10dcda333ca5 (diff)
Limit Onionoo's listening to localhost.task-23211
Implements task-23211.
-rw-r--r--INSTALL.md5
-rw-r--r--src/main/resources/jetty.xml1
2 files changed, 6 insertions, 0 deletions
diff --git a/INSTALL.md b/INSTALL.md
index 4c650bb..6980a06 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -117,6 +117,11 @@ By default, Onionoo is configured to run the updater hourly and provide the
web pages on http://localhost:8080/. The exact timing for the hourly update
runs is logged at start-up.
+Onionoo's Jetty configuration is done in 'jetty.xml', which can be replaced
+in the war-file.
+All configuration options can be found at
+```http://www.eclipse.org/jetty/documentation/```
+The build.xml file contains Onionoo's current jetty version.
### Performing the initial run
diff --git a/src/main/resources/jetty.xml b/src/main/resources/jetty.xml
index f2dce3d..3e53131 100644
--- a/src/main/resources/jetty.xml
+++ b/src/main/resources/jetty.xml
@@ -27,6 +27,7 @@
<Ref id="server"/>
</Arg>
<Set name="port">8080</Set>
+ <Set name="host">127.0.0.1</Set>
</New>
</Arg>
</Call>