Skip to content
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
6 changes: 4 additions & 2 deletions apps/api/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ const port = parseInt(process.env.API_PORT || process.env.PORT || '3333', 10);

const app = express();

// Trust proxy for rate limiting behind reverse proxy
app.set('trust proxy', 1);
// Cloud Run sits behind Google Front End (and often an HTTPS LB), which
// appends an extra X-Forwarded-For hop. Trusting only 1 hop makes req.ip
// the shared load-balancer address. Self-hosted nginx is a single hop.
app.set('trust proxy', process.env.K_SERVICE ? 2 : 1);

// Request logging (skip health checks)
app.use(RequestLoggerWithSkip(['/api/health']));
Expand Down
2 changes: 1 addition & 1 deletion apps/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zoneless/cli",
"version": "0.1.9",
"version": "0.2.0",
"description": "Provision and manage an agent-operated Zoneless store",
"license": "Apache-2.0",
"repository": {
Expand Down
Loading