Skip to content

Commit

Permalink
fix(forum_search): s3 path
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Jun 20, 2023
1 parent d4b7c2c commit c5e8df7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
3 changes: 1 addition & 2 deletions clevercloud/python.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"managetasks": [
"migrate --no-input",
"collectstatic --no-input",
"compress --force",
"rebuild_index --noinput"
"compress --force"
]
}
}
11 changes: 9 additions & 2 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,17 @@
HAYSTACK_CONNECTIONS = {
"default": {
"ENGINE": "haystack.backends.whoosh_backend.WhooshEngine",
"PATH": f"{AWS_S3_ENDPOINT_URL}/whoosh_index",
"PATH": f"s3://{AWS_STORAGE_BUCKET_NAME}/whoosh_index",
"AWS_ACCESS_KEY_ID": AWS_S3_ACCESS_KEY_ID,
"AWS_SECRET_ACCESS_KEY": AWS_S3_SECRET_ACCESS_KEY,
"AWS_STORAGE_BUCKET_NAME": AWS_STORAGE_BUCKET_NAME,
"AWS_S3_ENDPOINT_URL": AWS_S3_ENDPOINT_URL,
"AWS_S3_REGION_NAME": AWS_S3_STORAGE_BUCKET_REGION,
"AWS_S3_USE_SSL": True, # Change to True if your endpoint supports SSL
"AWS_AUTO_CREATE_BUCKET": False, # Set to True if you want Haystack to create the bucket
"AWS_AUTO_CREATE_INDEX": True, # Set to False if you manually create the index
},
}

# Forum - Machina settings
# ------------------------------------------------------------------------------
MACHINA_FORUM_NAME = "La Communauté"
Expand Down

0 comments on commit c5e8df7

Please sign in to comment.