{"id":20708450,"url":"https://github.com/hisdream86/nginx-sqs-proxy","last_synced_at":"2026-05-05T04:05:36.391Z","repository":{"id":198804515,"uuid":"701576343","full_name":"hisdream86/nginx-sqs-proxy","owner":"hisdream86","description":"A simple nginx proxy to enqueue the HTTP body data from your client to the AWS SQS","archived":false,"fork":false,"pushed_at":"2023-10-07T08:34:59.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T20:41:02.740Z","etag":null,"topics":["lua","nginx","proxy","sqs"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hisdream86.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-07T00:47:29.000Z","updated_at":"2023-10-07T08:36:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"14b534a7-1ce0-4c66-8526-9afe4b7046cd","html_url":"https://github.com/hisdream86/nginx-sqs-proxy","commit_stats":null,"previous_names":["hisdream86/nginx-sqs-proxy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hisdream86%2Fnginx-sqs-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hisdream86%2Fnginx-sqs-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hisdream86%2Fnginx-sqs-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hisdream86%2Fnginx-sqs-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hisdream86","download_url":"https://codeload.github.com/hisdream86/nginx-sqs-proxy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242978214,"owners_count":20215939,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lua","nginx","proxy","sqs"],"created_at":"2024-11-17T01:31:27.219Z","updated_at":"2026-05-05T04:05:31.354Z","avatar_url":"https://github.com/hisdream86.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nginx-sqs-proxy\n\nThis sample describes the way to implement a simple nginx proxy to enqueue the HTTP body data from your client to the AWS SQS. If you use the standard type of SQS, this proxy can handle a ton of requests with a small number of CPUs.\n\n## Build\n\n```bash\n$ docker build -t nginx-sqs-proxy .\n```\n\n## Run\n\n```bash\n$ docker run -p \u003cEXTERNAL_PORT\u003e:80 \\\n-e AWS_ACCOUNT_ID=\u003cAWS_ACCOUNT_ID\u003e \\\n-e QUEUE_NAME=\u003cSQS_QUEUE_NAME\u003e \\\n-e AWS_REGION=\u003cAWS_REGION\u003e \\\n-e AWS_ACCESS_KEY_ID=\u003cAWS_ACCESS_KEY_ID\u003e \\\n-e AWS_SECRET_ACCESS_KEY=\u003cAWS_SECRET_ACCESS_KEY\u003e \\\n-e AWS_ROLE_ARN=\u003cAWS_ROLE_ARN\u003e \\\n-e AWS_WEB_IDENTITY_TOKEN_FILE=$AWS_WEB_IDENTITY_TOKEN_FILE \\\nnginx-sqs-proxy\n```\n\nExample 1) Run a container with AWS access key and secret\n\n```bash\n$ docker run -p 8001:80 \\\n-e AWS_ACCOUNT_ID=000000000000 \\\n-e QUEUE_NAME=my-test-queue \\\n-e AWS_REGION=us-west-2 \\\n-e AWS_ACCESS_KEY_ID=XXXXXXXXX \\\n-e AWS_SECRET_ACCESS_KEY=XXXXXXXXXXXX \\\nnginx-sqs-proxy\n```\n\nExample 2) Run a container using IAM assume role\n\n```bash\n$ docker run -p 8001:80 \\\n-e AWS_ACCOUNT_ID=000000000000 \\\n-e QUEUE_NAME=my-test-queue \\\n-e AWS_REGION=us-west-2 \\\n-e AWS_ROLE_ARN=arn:aws:iam::000000000000:role/my-test-role \\\n-e AWS_WEB_IDENTITY_TOKEN_FILE=$AWS_WEB_IDENTITY_TOKEN_FILE \\\nnginx-sqs-proxy\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhisdream86%2Fnginx-sqs-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhisdream86%2Fnginx-sqs-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhisdream86%2Fnginx-sqs-proxy/lists"}