poundifdef / SmoothMQ

A drop-in replacement for SQS designed for great developer experience and efficiency.
GNU Affero General Public License v3.0
1.7k stars 30 forks source link

Web UI returns error "Authorization header is missing" #4

Closed yonas closed 5 days ago

yonas commented 5 days ago
❯ xh http://localhost:3001
HTTP/1.1 500 Internal Server Error
Content-Length: 31
Content-Type: text/plain; charset=utf-8
Date: Sun, 30 Jun 2024 17:40:27 GMT

Authorization header is missing
yonas commented 5 days ago

Do you need a AWS account to use this project?

It looks like you reference amazonaws.com , which shouldn't be needed if this is a complete substitute for AWS SQS.

queueUrl := fmt.Sprintf("https://sqs.us-east-1.amazonaws.com/%d/%s", tenantId, req.QueueName) -- protocols/sqs/sqs.go

poundifdef commented 5 days ago

I should make this more clear! I'll work on updating docs.

The web UI is available via http://localhost:3000

The SQS interface is on http://localhost:3001

You can actually put any hostname for the queue url - I just hardcoded the AWS one for convenience (and you could use your existing aws queue name and things will just work.) You don't need an aws account, but you do need an access/secret key. Right now they are hardcoded to YOUR_ACCESS_KEY_ID and YOUR_SECRET_ACCESS_KEY.

yonas commented 5 days ago

Thanks!

poundifdef commented 2 days ago

Just pushed a fix for this. You can now define your own aws access/secret key via a config. Check out: https://github.com/poundifdef/SmoothMQ/blob/main/config.yaml