Skip to content

Commit f893a29

Browse files
committed
Make sure SOLR only listens to localhost
1 parent 76047a0 commit f893a29

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

2- INSTALL.rdoc

+5
Original file line numberDiff line numberDiff line change
@@ -189,3 +189,8 @@ If all this works, you can access the rism application:
189189

190190
Depending on the env, remove sudo if necessary. RAILS_ENV is needed only on production, and has to come *after* sudo.
191191

192+
Also it is goot to block access to SOLR:
193+
194+
sudo iptables -A INPUT -p tcp -s localhost --dport 8983 -j ACCEPT
195+
sudo iptables -A INPUT -p tcp --dport 8983 -j DROP
196+

Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ GIT
6969

7070
GIT
7171
remote: https://github.com/rism-ch/sunspot
72-
revision: f4089a58025be84d9445d3282c107abafab02f4f
72+
revision: 18fa86905668c1edc1d01917ef5fbef16bd4bcd9
7373
branch: java9-stack
7474
specs:
7575
sunspot (2.3.0)

config/sunspot.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ production:
55
log_level: WARNING
66
path: /solr/production
77
memory: 16G
8+
bind_address: 127.0.0.1
89
# read_timeout: 2
910
# open_timeout: 0.5
1011

@@ -14,11 +15,12 @@ development:
1415
port: 8982
1516
log_level: INFO
1617
path: /solr/development
18+
bind_address: 127.0.0.1
1719

1820
test:
1921
solr:
2022
hostname: localhost
2123
port: 8982
2224
log_level: WARNING
2325
path: /solr/test
24-
26+
bind_address: 127.0.0.1

0 commit comments

Comments
 (0)