Invalid URL for logo upload on self-hosted
Hey everyone,
i tried to upload a logo for branding within selfhosted, but it is sended to:
http://localhost:4566/novu-local/660551175eb25685819380b5/660551175eb25685819380bc/30ad42d9add8bea969aa6a2384127996.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=test%2F20240406%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240406T062400Z&X-Amz-Expires=3600&X-Amz-Signature=8be53883d504cbc57161ca760f87e9ea82874da537e1262235e1780939ac8d6c&X-Amz-SignedHeaders=host&x-amz-acl=public-read&x-id=PutObject
Referrer Policy:
strict-origin-when-cross-origin
is this a configuration error or a bug?
9 Replies
Hi @SHG-TV, I'm an AI assistant for Novu. While a team member reviews this question, I'll look through relevant sources and see if I can provide suggestions. Please tag @Ask Inkeep with any follow-up questions.
-----------------------------
While I generate an answer, here are some sources that might be helpful:
* Object Storage (S3, Blob, GCS)
* Introduction
* Deploy with Docker
* Deploy with Terraform
-----------------------------
Answer
It seems like your setup is using LocalStack for S3 emulation, which is indicated by the
localhost:4566
URL in your message. This is a common setup for local development to mimic AWS S3 without actually using the AWS cloud service. It's not necessarily a bug but rather a part of the development and testing process. Ensure your environment variables for S3 are correctly set up and that you're aware this setup is meant for local testing. For production, you should configure it to use actual S3 or another supported storage service. For more details on how to configure S3 storage with Novu, including required environment variables, please refer to the documentation (1) .Glad I could be helpful. Feel free to create a new thread with any new questions you may have.
@Ask Inkeep I found the configuration for setup gcp as storage provider. Can you give me information about how to mount the service key file into the docker configuration
Thanks for the follow-up, @SHG-TV. I'll get back to you soon.
@SHG-TV, you just advanced to level 4!
-----------------------------
While I generate an answer, here are some sources that might be helpful:
* Deploy with Docker
* Object Storage (S3, Blob, GCS)
* AWS
* Zulip
-----------------------------
Answer
To configure Google Cloud Storage as your storage provider with Novu, you need to set specific environment variables, including the path to your Google Cloud service account key file. Here is how you can do it:
1. Ensure you have the
2. Other necessary environment variables include
GOOGLE_APPLICATION_CREDENTIALS
environment variable set to the path of your service account key file. This file should be accessible within your Docker environment.
2. Other necessary environment variables include
GCS_BUCKET_NAME
for the name of your bucket and STORAGE_SERVICE
set to GCS
for Google Cloud Storage.
Here is an example of how you might set these environment variables in your Docker configuration or .env
file:
Make sure the path to your service account key file (GOOGLE_APPLICATION_CREDENTIALS
) is accessible within your Docker container. If your service account key file is not already inside your container or built into your image, you might need to mount it as a volume in your docker-compose.yml
or when running your Docker container:
This line in your Docker configuration maps the service account file from your local filesystem to the desired location inside the Docker container, making it accessible at the path you've set in
GOOGLE_APPLICATION_CREDENTIALS
.
Remember to replace /local/path/to/your/service-account-file.json
with the actual path to your service account key file on your local machine, and /path/to/your/service-account-file.json
with the path where you want it to be accessible inside your Docker container.
Please review the official Novu documentation and Docker documentation for detailed instructions on environment variable configuration and volume mounting in Docker containers. (1)Glad I could be helpful. Feel free to create a new thread with any new questions you may have.