Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.76 KB

README.md

File metadata and controls

53 lines (35 loc) · 1.76 KB

Citadel Search as a Service

Citadel Search provides enterprise search capabilities on demand. You can set up your own search instance, submit your documents and search among them when needed!

  • User documentation here.
  • Administration documentation here.

Local Development options

  • Docker (recommended)
  1. Run make env MODE=test
  2. Follow instructions to install certificate.
  3. Chrome https://localhost Note: When sending records in this setup set the $schema field as "https://0.0.0.0/schemas/<instance>/<record>.json" Read more on the makefile and the Docs.
  • Docker + Poetry: Read more on the makefile
  1. Run make local-env MODE=test
  2. Follow instructions to install certificate.

[NOTE: CERN ADMINS ONLY]

  • Docker (connected to cern sso)
  1. Use Teigi to obtain oauth credentials

tbag show --hg cernsearch oauth_dev-cern-search

  1. Open .env-staging and edit INVENIO_CERN_APP_CREDENTIALS: replace secret with the key you just obtained.

  2. Edit /etc/hosts and add line:

127.0.0.1 dev-cern-search.web.cern.ch

  1. Edit docker-compose.test.yml and add - .env-staging under env_file:
   env_file:
     - .env
     - .env-staging
  1. Run make env-staging MODE=test
  2. Follow instructions to install certificate.
  3. Chrome https://dev-cern-search.web.cern.ch/ (without proxy to cern on)

TLS - How to install certificate

Install generated certificate nginx/tls/cern.ch.crt locally.

For mac: sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain nginx/tls/cern.ch.crt