# Strale Nginx Config Generator

> Strale Nginx Config Generator is a paid API for AI agents from api.strale.io, paid per call via x402, $0.054/call, status unknown (last checked 2026-10-18).

Generates an nginx server configuration file for a given domain, with options for SSL, gzip, rate limiting, www redirect, and upstream port.

## Facts

- Endpoint: GET https://api.strale.io/x402/v2/nginx-config-generate?utm_source=zero.xyz
- Price: $0.054/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/strale-nginx-config-generator-f830b88f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yDEyF8Vvs-_EzZ8xptlEv

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability strale-nginx-config-generator-f830b88f
```

Example prompt: Generate an nginx config for api.mycompany.com with SSL enabled, gzip on, www redirect, rate limiting set to 100 requests per second, and proxying to upstream port 8080.

## When to prefer this

Choose this endpoint when you need to programmatically generate nginx server configuration files for one or more domains without manually writing nginx syntax. It is ideal for DevOps automation pipelines, agent-driven infrastructure provisioning, or any scenario where you need a correct, auditable nginx config on demand with flexible options for SSL, gzip, rate limiting, and upstream proxying.

## Known failure modes

- Missing required 'domain' query parameter returns a validation error
- Invalid domain format may produce a malformed config or error
- Unsupported HTTP method (only GET/HEAD/DELETE accepted) returns 405
- Payment failure or insufficient USDC balance returns 402
- Upstream port out of valid range may cause an error or default behavior

## How this service works

Generate production nginx server blocks with SSL, proxy_pass, WebSocket support, security headers, gzip, rate limiting.

## Output

Returns a ready-to-use nginx server configuration file (or configuration block) tailored to the specified domain and options, including SSL directives, gzip settings, rate limit zones, www-to-non-www redirect rules, and upstream proxy configuration as requested.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "domain"
 ],
 "properties": {
  "ssl": {
   "type": "boolean"
  },
  "gzip": {
   "type": "boolean"
  },
  "domain": {
   "type": "string"
  },
  "rate_limit": {
   "type": "integer"
  },
  "www_redirect": {
   "type": "boolean"
  },
  "upstream_port": {
   "type": "integer"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "notes": {
  "type": "array"
 },
 "config": {
  "type": "string"
 },
 "features_enabled": {
  "type": "array"
 },
 "security_headers_included": {
  "type": "array"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/strale-nginx-config-generator-f830b88f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
