{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ed95bc5f-3119-488a-804b-663a45d39327",
    "slug": "apache-tika-secure",
    "name": "Apache Tika",
    "description": "Authenticated document text and metadata extraction API",
    "url": "https://railway.com/deploy/apache-tika-secure",
    "upstream": {
      "repo_url": "https://github.com/monotykamary/railway-template-apache-tika"
    }
  },
  "services": [
    {
      "name": "proxy",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-apache-tika"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "tika",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-apache-tika"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "proxy",
      "description": "Internal authenticated proxy port used by the Railway public domain.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "TIKA_URL",
      "service": "proxy",
      "description": "Private Apache Tika origin. Keep this service reference unchanged.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "BASIC_AUTH_USER",
      "service": "proxy",
      "description": "HTTP Basic username required for all parsing endpoints.",
      "secret": false,
      "strategy": "default",
      "default": "tika"
    },
    {
      "key": "BASIC_AUTH_PASSWORD",
      "service": "proxy",
      "description": "Generated HTTP Basic password for the public parsing API.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "tika",
      "description": "Apache Tika Server HTTP port used on Railway private networking.",
      "secret": false,
      "strategy": "default",
      "default": "9998"
    },
    {
      "key": "JAVA_TOOL_OPTIONS",
      "service": "tika",
      "description": "Runs headless and keeps the JVM heap within the Railway container memory limit.",
      "secret": false,
      "strategy": "default",
      "default": "-Djava.awt.headless=true -XX:MaxRAMPercentage=75.0"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "apache-tika-secure"
      }
    },
    "cli": "railway deploy --template apache-tika-secure",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ed95bc5f-3119-488a-804b-663a45d39327",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "8a458f2e-19dd-4d25-b58e-79d7b7b96e4e": {
                  "icon": "https://raw.githubusercontent.com/monotykamary/railway-template-apache-tika/0ade0fd1e03fd91c093c4dc1182d57b0aebbe50f/assets/apache-tika-icon.png",
                  "name": "proxy",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-apache-tika",
                    "rootDirectory": "/proxy"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Internal authenticated proxy port used by the Railway public domain.",
                      "defaultValue": "8080"
                    },
                    "TIKA_URL": {
                      "isOptional": false,
                      "description": "Private Apache Tika origin. Keep this service reference unchanged.",
                      "defaultValue": "http://${{tika.RAILWAY_PRIVATE_DOMAIN}}:9998"
                    },
                    "BASIC_AUTH_USER": {
                      "isOptional": false,
                      "description": "HTTP Basic username required for all parsing endpoints.",
                      "defaultValue": "tika"
                    },
                    "BASIC_AUTH_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated HTTP Basic password for the public parsing API.",
                      "defaultValue": "{{BASIC_AUTH_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "b815fc5d-31db-4c5d-802a-e4f2670bfc7c": {
                  "icon": "https://raw.githubusercontent.com/monotykamary/railway-template-apache-tika/0ade0fd1e03fd91c093c4dc1182d57b0aebbe50f/assets/apache-tika-icon.png",
                  "name": "tika",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/tika",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-apache-tika",
                    "rootDirectory": "/tika"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Apache Tika Server HTTP port used on Railway private networking.",
                      "defaultValue": "9998"
                    },
                    "JAVA_TOOL_OPTIONS": {
                      "isOptional": false,
                      "description": "Runs headless and keeps the JVM heap within the Railway container memory limit.",
                      "defaultValue": "-Djava.awt.headless=true -XX:MaxRAMPercentage=75.0"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "proxy",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": false
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-06T18:04:42.291Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_7bf0e873553848fdb6a0",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 163,
    "typical_build_seconds": 10,
    "typical_start_seconds": 10,
    "slowest_service": "proxy"
  }
}
