All API tools
DevOps & Config
Nginx Configuration Generator API
GET
/v1/nginx-config-generator Free tier1 credit / callAuthentication
Send your API key as a bearer token. Create one free in the dashboard.
Authorization: Bearer $TOOLSXPO_KEYParameters
Passed as query-string parameters. Example values shown.
| Name | Example |
|---|---|
| domain | example.com |
| type | proxy |
| target | http://127.0.0.1:3000 |
| rootPath | /var/www/example.com/html |
| maxBody | 50M |
| ssl | true |
| http2 | true |
| gzip | true |
| securityHeaders | true |
| cors | false |
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.