Sign inSign up

pluswerk/solr-proxy

By pluswerk

•Updated about 3 years ago

Image
0

1.6K

pluswerk/solr-proxy repository overview

⁠UPDATED README: https://github.com/pluswerk/solr-proxy⁠

⁠pluswerk/solr-proxy

Reverse proxy to make a Solr instance read-only, rejecting requests that have the potential to modify the Solr index.

Uses the npm package solr-proxy⁠ with some bug fixes and additional features.

ENVDESCRIPTIONDefault
PORTport of the proxy8008
VALID_HTTP_METHODSallow list of valid HTTP MethodsGET
VALID_PATHScomma separated list of valid paths eg/solr/core_en/select,/solr/core_de/select/solr/select
INVALID_PARAMScomma separated list of valid parametersqt,stream
SOLR_HOSThost of solr, accessible from the solr-proxy containersolr
SOLR_PORTport of solr, accessible from the solr-proxy container8983
MAX_ROWSmaximum items in all lists200
MAX_STARTmaximum offset in all lists1000

⁠Example docker-compose.yml

version: '3.6'

services:
  solr-proxy:
    image: pluswerk/solr-proxy
    ports:
      - "0.0.0.0:8983:8008"
    environment:
      VIRTUAL_HOST: solr-proxy.domain
      VIRTUAL_PORT: 8008
      VALID_PATHS: /solr/core_en/select,/solr/core_de/select,/solr/core_fr/select,/solr/core_nl/select,/solr/core_zh/select
      SOLR_HOST: solr
      SOLR_PORT: 8983
    #...
      
  solr:
    image: solr
    ports:
      - "127.0.0.1:8984:8983"
    volumes:
      - ./solrData:/opt/solr/server/solr/data/
    #...

# only useful in conjunction with https://github.com/pluswerk/docker-global
# remove if not needed
networks:
  default:
    external:
      name: global

Tag summary

Content type

Image

Digest

sha256:3ed2303b9…

Size

61.1 MB

Last updated

about 3 years ago

docker pull pluswerk/solr-proxy