File tree Expand file tree Collapse file tree 2 files changed +34
-2
lines changed Expand file tree Collapse file tree 2 files changed +34
-2
lines changed Original file line number Diff line number Diff line change
1
+ cluster :
2
+ name : elasticsearch
3
+
4
+ index :
5
+ number_of_replicas : 0
6
+ number_of_shards : 1
7
+ analysis :
8
+ analyzer :
9
+ eulang :
10
+ type : custom
11
+ tokenizer : standard
12
+ filter : [standard, lowercase, asciifolding]
13
+ location :
14
+ type : custom
15
+ tokenizer : standard
16
+ filter : [standard, lowercase, asciifolding]
17
+
18
+ transport.tcp.port : 9310
19
+
20
+ readonlyrest :
21
+ enable : true
22
+ response_if_req_forbidden : <h1>Forbidden</h1>
23
+ access_control_rules :
24
+ - name : ALLOW MARVEL
25
+ type : allow
26
+ methods : [POST]
27
+ # the question mark should be a fwd slash, but something goes wrong if I use it. Bug?
28
+ uri_re : ' ^?\.marvel.*_search.*'
29
+ - name : readonly
30
+ type : allow
31
+ methods : [OPTIONS,GET]
32
+ maxBodyLength : 0
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ cat Dockerfile.tpl |sed -e "s/\${VERSION}/$VERSION/" -e "s/\${PLUGIN_VERSION}/$P
18
18
# PLUGIN_ZIP=elasticsearch-readonlyrest-$VERSION.zip
19
19
20
20
# Populate the conf files with test yml
21
- cp src/test/three_rules .yml docker/elasticsearch.yml
21
+ cp src/test/testconf .yml docker/elasticsearch.yml
22
22
cp target/elasticsearch-readonlyrest-$VERSION .zip docker
23
23
24
24
# Build and launch docker container
@@ -29,4 +29,4 @@ docker run -d --net=host readonlyrest:$VERSION
29
29
rm -rf docker
30
30
31
31
docker rm -f ` docker ps | grep readonlyrest| awk ' {print $1}' `
32
- docker run --net host readonlyrest:$VERSION
32
+ docker run --net= host readonlyrest:$VERSION
You can’t perform that action at this time.
0 commit comments