open-semantic-search icon indicating copy to clipboard operation
open-semantic-search copied to clipboard

Blacklist and Whitelist with Docker?

Open rickcecil opened this issue 2 years ago • 1 comments

I installed OSS using Docker and don't see a way to edit the blacklist or whitelist. Not sure if I am missing something or if this functionality doesn't exist yet. Any guidance would be greatly appreciated.

rickcecil avatar Feb 28 '22 12:02 rickcecil

Wanted to circle back to this in case others are looking for this answer as well.

I ended up doing the following:

  1. Mount the blacklist directory to the host like so:
apps:
  etl:
    volumes:
      - ./blacklist:/etc/opensemanticsearch/blacklist
  1. Then I copied the files from located here in the repo: /etc/opensemanticsearch/blacklist to the new blacklist directory

  2. I changed ownership to www-data

chown -R www-data:www-data blacklist/.

You will likely have to run that command as sudo and ensure the path to the blacklist directory is correct.

  1. Lastly, I ensured that all files were readable by user, group, and everyone.

chmod -R a+r blacklist/.

This seems to be working so far. I will report back if I discover an issue with this approach.

rickcecil avatar Mar 20 '22 20:03 rickcecil