Skip to content

Commit 4a0a444

Browse files
authored
Merge pull request #18 from srtonz/patch-1
Add security configuration to README
2 parents 1bba33c + d3512b7 commit 4a0a444

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,24 @@ $ java -jar tika-server-1.16.jar
5353
This will start Tika on the host. By default the Tika service is available on: `http://localhost:9998`
5454

5555
### Enabling File indexing support in Moodle
56-
Once a Tika service is available the Postgres Full-Text plugin in Moodle needs to be configured for file indexing support.<br/>
56+
Once a Tika service is available the Postgres Full-Text plugin in Moodle needs to be configured for file indexing support.
57+
5758
Assuming you have already followed the basic installation steps, to enable file indexing support:
5859

5960
1. Configure the plugin at: *Site administration > Plugins > Search > Postgres Full Text.
6061
2. Select the *Enable file indexing* checkbox.
6162
3. Set *Tika URL*, including the port number e.g. http://localhost:9998.
6263
4. Click the *Save Changes* button.
6364

65+
### Configure your site security
66+
67+
Open your site's security settings at *Site administration > General > Security > HTTP Security* and ensure that
68+
69+
1. The hostname **and** IP address of your Tika server are not shown in the *cURL blocked hosts list*.
70+
2. The port number of your Tika server is in the *cURL allowed ports list*.
71+
72+
If your Tika instance is running at `http://localhost:9998`, you have to remove both `localhost` and `127.0.0.1` from the *cURL blocked hosts list*, and add `9998` to the *cURL allowed ports list*.
73+
6474
### What is Tika
6575
From the [Apache Tika](https://tika.apache.org/) website:
6676
<blockquote>

0 commit comments

Comments
 (0)