Skip to content

Commit

Permalink
Make sure SOLR only listens to localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
xhero committed Dec 3, 2018
1 parent 76047a0 commit f893a29
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions 2- INSTALL.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,8 @@ If all this works, you can access the rism application:

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

Also it is goot to block access to SOLR:

sudo iptables -A INPUT -p tcp -s localhost --dport 8983 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 8983 -j DROP

2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ GIT

GIT
remote: https://github.com/rism-ch/sunspot
revision: f4089a58025be84d9445d3282c107abafab02f4f
revision: 18fa86905668c1edc1d01917ef5fbef16bd4bcd9
branch: java9-stack
specs:
sunspot (2.3.0)
Expand Down
4 changes: 3 additions & 1 deletion config/sunspot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ production:
log_level: WARNING
path: /solr/production
memory: 16G
bind_address: 127.0.0.1
# read_timeout: 2
# open_timeout: 0.5

Expand All @@ -14,11 +15,12 @@ development:
port: 8982
log_level: INFO
path: /solr/development
bind_address: 127.0.0.1

test:
solr:
hostname: localhost
port: 8982
log_level: WARNING
path: /solr/test

bind_address: 127.0.0.1

0 comments on commit f893a29

Please sign in to comment.