Skip to content

Commit 9b69595

Browse files
committed
Rename project to caddy-lambda-licious
1 parent e44b75d commit 9b69595

15 files changed

Lines changed: 21 additions & 21 deletions

‎README.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
![caddy-lambda logo](meta/caddy_lambda.png)
1+
![caddy-lambda-licious logo](meta/caddy_lambda_licious.png)
22

3-
# caddy-lambda
3+
# caddy-lambda-licious
44

55
[Caddy](https://caddyserver.com/) v2 plugin for dispatching requests to [AWS Lambda](https://aws.amazon.com/lambda/).
66

77
## Installation
88

99
Use the standard [xcaddy](https://github.com/caddyserver/xcaddy) tool to build a custom `caddy` binary that includes the plugin.
1010
```
11-
xcaddy build --with github.com/danmoz/caddy-lambda
11+
xcaddy build --with github.com/danmoz/caddy-lambda-licious
1212
```
1313

1414
## Usage
@@ -47,7 +47,7 @@ By default, the plugin will forward events using the `api_gateway_v2` event form
4747
# Recommended for production: assume a dedicated IAM role
4848
role_arn arn:aws:iam::123456789012:role/LambdaInvoker
4949
external_id example-external-id
50-
session_name caddy-lambda
50+
session_name caddy-lambda-licious
5151
5252
# Useful for local testing:
5353
# endpoint http://127.0.0.1:3001
@@ -95,7 +95,7 @@ duplicate invocations.
9595

9696
Be careful when increasing `max_body_size`. AWS Lambda limits synchronous invocation payloads to 6 MB, and this limit applies to the complete serialized event sent to Lambda, not just the HTTP request body. Binary request bodies are base64-encoded, increasing their size by approximately 33%, with headers and the event envelope adding further overhead.
9797

98-
The default 4 MiB limit leaves some headroom, but unusually large headers may reduce the maximum safe body size. If the serialized Lambda event exceeds the 6 MB limit, caddy-lambda rejects the request with HTTP `413 Payload Too Large`.
98+
The default 4 MiB limit leaves some headroom, but unusually large headers may reduce the maximum safe body size. If the serialized Lambda event exceeds the 6 MB limit, caddy-lambda-licious rejects the request with HTTP `413 Payload Too Large`.
9999

100100
## Response Codes
101101

@@ -188,7 +188,7 @@ errors, timeouts, throttling, and malformed responses are returned as Caddy
188188
handler errors.
189189

190190
Every invocation has a request ID. If the incoming request includes an
191-
`X-Request-ID` header, its value is preserved; otherwise, caddy-lambda
191+
`X-Request-ID` header, its value is preserved; otherwise, caddy-lambda-licious
192192
generates a UUID matching the format used by AWS API Gateway. The request ID
193193
is used consistently in `requestContext.requestId` and structured logs, and
194194
is returned to the client in the `X-Request-ID` response header.

‎caddyfile.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package caddylambda
1+
package caddylambdalicious
22

33
import (
44
"github.com/caddyserver/caddy/v2"

‎caddyfile_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package caddylambda
1+
package caddylambdalicious
22

33
import (
44
"encoding/json"

‎go.mod‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/danmoz/caddy-lambda
1+
module github.com/danmoz/caddy-lambda-licious
22

33
go 1.25.1
44

‎infra/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM caddy:2.11.4-builder AS builder
22

33
COPY . /src
44
WORKDIR /src
5-
RUN xcaddy build --with github.com/danmoz/caddy-lambda=.
5+
RUN xcaddy build --with github.com/danmoz/caddy-lambda-licious=.
66

77
FROM caddy:2.11.4-alpine
88

‎infra/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Running `mise aws-deploy` will:
1313

1414
The service is intentionally HTTP-only for testing; so no SSL.
1515

16-
The stack creates a VPC named `caddy-lambda-testing-vpc` with two public
16+
The stack creates a VPC named `caddy-lambda-licious-testing-vpc` with two public
1717
subnets and an internet gateway. It does not require a default VPC.
1818

1919
## Prerequisites

‎infra/main.tf‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ provider "aws" {
1616
variable "lambda_name" {
1717
description = "Name of the deployed Lambda function"
1818
type = string
19-
default = "caddy-lambda-fixture"
19+
default = "caddy-lambda-licious-fixture"
2020
}
2121

2222
variable "stack_name" {
2323
description = "Prefix used for AWS resource names"
2424
type = string
25-
default = "caddy-lambda-test"
25+
default = "caddy-lambda-licious-test"
2626
}
2727

2828
data "aws_availability_zones" "available" {
@@ -35,7 +35,7 @@ resource "aws_vpc" "testing" {
3535
enable_dns_support = true
3636

3737
tags = {
38-
Name = "caddy-lambda-testing-vpc"
38+
Name = "caddy-lambda-licious-testing-vpc"
3939
}
4040
}
4141

@@ -51,7 +51,7 @@ resource "aws_subnet" "public" {
5151
map_public_ip_on_launch = true
5252

5353
tags = {
54-
Name = "caddy-lambda-testing-public-${count.index + 1}"
54+
Name = "caddy-lambda-licious-testing-public-${count.index + 1}"
5555
}
5656
}
5757

‎middleware.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package caddylambda
1+
package caddylambdalicious
22

33
import (
44
"context"

0 commit comments

Comments
 (0)