---
title: "Nginx Config Generate (x402)"
method: GET
path: "/x402/v2/nginx-config-generate"
tags: ["x402"]
---

# Nginx Config Generate (x402)

`GET /x402/v2/nginx-config-generate`

## Request

- Base URL: `https://api.strale.io`
- URL: `https://api.strale.io/x402/v2/nginx-config-generate`
- Auth: none required

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

## Query parameters

- `ssl` boolean
- `gzip` boolean
- `domain` string, required
- `rate_limit` integer
- `www_redirect` boolean
- `upstream_port` integer

## Response `200`

Success

- object
  - `notes` unknown[]
    - unknown
  - `config` string
  - `features_enabled` unknown[]
    - unknown
  - `security_headers_included` unknown[]
    - unknown

## Other responses

- `402`: Payment required (x402 — pay with USDC on Base)

---

[API](https://skmtc.dev/strale/apis/strale-api-2.md) · [All operations](https://skmtc.dev/strale/apis/strale-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/strale/apis/strale-api-2/revisions/a5293878cfc6?raw)
