{
  "manifest_version": "1.0.0",
  "template": {
    "id": "1fda7d8b-2a41-4ec3-adbe-586a535841b1",
    "slug": "searxng-search",
    "name": "SearXNG",
    "description": "Private metasearch engine with the JSON API on, for AI agents and apps",
    "url": "https://railway.com/deploy/searxng-search",
    "upstream": {
      "image": "ghcr.io/searxng/searxng:2026.10.28-c360868e5"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "SearXNG",
      "source": {
        "image": "ghcr.io/searxng/searxng:2026.10.28-c360868e5"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "SearXNG",
      "description": "Port Railway routes the domain and healthcheck to. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "SEARXNG_SECRET",
      "service": "SearXNG",
      "description": "Signs cookies and image-proxy URLs. Generated for you.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "GRANIAN_WORKERS",
      "service": "SearXNG",
      "description": "Web worker processes. 1 keeps it near 150 MB; raise it on bigger plans for more concurrent searches.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "SEARXNG_LIMITER",
      "service": "SearXNG",
      "description": "Bot limiter. Off, so AI apps and scripts can call the JSON API. Turning it on also needs a Valkey service and SEARXNG_VALKEY_URL.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "SEARXNG_BASE_URL",
      "service": "SearXNG",
      "description": "Public URL of this instance, used in links, OpenSearch and the JSON API. Change it if you add a custom domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SEARXNG_PUBLIC_INSTANCE",
      "service": "SearXNG",
      "description": "Marks the instance as public (stricter bot checks, needs the limiter). Keep false for a private instance.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "searxng-search"
      }
    },
    "cli": "railway deploy --template searxng-search",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "1fda7d8b-2a41-4ec3-adbe-586a535841b1",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "18b8b182-4a91-4c60-8861-264fc889cb4f": {
                  "icon": "https://raw.githubusercontent.com/searxng/searxng/c360868e5b7c01e463a362a53518190d5a3b1097/client/simple/src/brand/searxng.svg",
                  "name": "SearXNG",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"sed -i '1i search: {formats: [html, json]}' /usr/local/searxng/settings.template.yml; exec /usr/local/searxng/entrypoint.sh\"",
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/searxng/searxng:2026.10.28-c360868e5"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway routes the domain and healthcheck to. Do not change.",
                      "defaultValue": "8080"
                    },
                    "SEARXNG_SECRET": {
                      "isOptional": false,
                      "description": "Signs cookies and image-proxy URLs. Generated for you.",
                      "defaultValue": "{{SEARXNG_SECRET}}"
                    },
                    "GRANIAN_WORKERS": {
                      "isOptional": false,
                      "description": "Web worker processes. 1 keeps it near 150 MB; raise it on bigger plans for more concurrent searches.",
                      "defaultValue": "1"
                    },
                    "SEARXNG_LIMITER": {
                      "isOptional": false,
                      "description": "Bot limiter. Off, so AI apps and scripts can call the JSON API. Turning it on also needs a Valkey service and SEARXNG_VALKEY_URL.",
                      "defaultValue": "false"
                    },
                    "SEARXNG_BASE_URL": {
                      "isOptional": false,
                      "description": "Public URL of this instance, used in links, OpenSearch and the JSON API. Change it if you add a custom domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/"
                    },
                    "SEARXNG_PUBLIC_INSTANCE": {
                      "isOptional": false,
                      "description": "Marks the instance as public (stricter bot checks, needs the limiter). Keep false for a private instance.",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "SearXNG",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-10-28T16:14:58.566Z",
  "generator_version": "0.1.0"
}
