Skip to content

Commit

Permalink
Fix certificate handling (#70)
Browse files Browse the repository at this point in the history
* fix: preserve newlines when writing certs

* fix: add missing env keys to example
  • Loading branch information
olaughter authored Oct 25, 2023
1 parent 06b5b7a commit 78a7935
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ NMSLIB_M=16
OPENSEARCH_INDEX_EMBEDDING_DIM=768
OPENSEARCH_BULK_REQUEST_TIMEOUT=60


EMBEDDINGS_INPUT_PREFIX=
INDEXER_INPUT_PREFIX=
INDEXER_INPUT_PREFIX=

VESPA_INSTANCE_URL=
VESPA_PRIVATE_KEY=
VESPA_KEY_LOCATION=
VESPA_PUBLIC_CERT=
VESPA_CERT_LOCATION=
VESPA_DOCUMENT_BATCH_SIZE=
INDEXER_INPUT_PREFIX=
4 changes: 2 additions & 2 deletions cli/run.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ set -e
echo Setting up for vespa

mkdir -p $(dirname $VESPA_KEY_LOCATION)
echo ${VESPA_PRIVATE_KEY} > ${VESPA_KEY_LOCATION}
echo "${VESPA_PRIVATE_KEY}" > ${VESPA_KEY_LOCATION}

mkdir -p $(dirname $VESPA_CERT_LOCATION)
echo ${VESPA_PUBLIC_CERT} > ${VESPA_CERT_LOCATION}
echo "${VESPA_PUBLIC_CERT}" > ${VESPA_CERT_LOCATION}

python -m cli.index_data --s3 "${INDEXER_INPUT_PREFIX}" --index-type vespa

0 comments on commit 78a7935

Please sign in to comment.