Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SEARCH] correction du endpoint S3 pour le stockage de l'index #320

Merged
merged 1 commit into from
Jun 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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