All API tools

DevOps & Config

Nginx Configuration Generator API

GET/v1/nginx-config-generator Free tier1 credit / call

Authentication

Send your API key as a bearer token. Create one free in the dashboard.

Authorization: Bearer $TOOLSXPO_KEY

Parameters

Passed as query-string parameters. Example values shown.

NameExample
domainexample.com
typeproxy
targethttp://127.0.0.1:3000
rootPath/var/www/example.com/html
maxBody50M
ssltrue
http2true
gziptrue
securityHeaderstrue
corsfalse

Example request

curl "https://api.toolsxpo.com/v1/nginx-config-generator?domain=example.com&type=proxy&target=http%3A%2F%2F127.0.0.1%3A3000&rootPath=%2Fvar%2Fwww%2Fexample.com%2Fhtml&maxBody=50M&ssl=true&http2=true&gzip=true&securityHeaders=true&cors=false" \
  -H "Authorization: Bearer $TOOLSXPO_KEY"

Response

A standard JSON envelope: { ok, data, meta }. The result is in data (text); meta.credits reports what the call cost.