{
  "manifest_version": "1.0.0",
  "template": {
    "id": "06eae55c-17af-410a-b6b8-5bc7bb699c33",
    "slug": "ocPcV2",
    "name": "SwiftOpenAIProxy",
    "description": "Server-side Swift OpenAI reverse proxy server",
    "url": "https://railway.com/deploy/ocPcV2",
    "upstream": {
      "repo_url": "https://github.com/ronaldmannak/SwiftOpenAIProxy"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "SwiftOpenAIProxy",
      "source": {
        "repo": "https://github.com/ronaldmannak/SwiftOpenAIProxy"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "IAPKeyId",
      "service": "SwiftOpenAIProxy",
      "description": "IAP key Id",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "appTeamId",
      "service": "SwiftOpenAIProxy",
      "description": "Apple app team Id",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "appAppleId",
      "service": "SwiftOpenAIProxy",
      "description": "app Apple Id",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "IAPIssuerId",
      "service": "SwiftOpenAIProxy",
      "description": "IAP Issuer Id",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "appBundleId",
      "service": "SwiftOpenAIProxy",
      "description": "Your app's bundle Id",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "IAPPrivateKey",
      "service": "SwiftOpenAIProxy",
      "description": "App Store Connect generated IAP key. Single line. Replace newlines with //n",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "JWTPrivateKey",
      "service": "SwiftOpenAIProxy",
      "description": "For generating tokens between your client app and the proxy",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OpenAI-APIKey",
      "service": "SwiftOpenAIProxy",
      "description": "Your OpenAI API key (\"sk-...\")",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "tokenExpiration",
      "service": "SwiftOpenAIProxy",
      "description": "token expiration in hours",
      "secret": true,
      "strategy": "default",
      "default": "24"
    },
    {
      "key": "enableRateLimiter",
      "service": "SwiftOpenAIProxy",
      "description": "Set to 1 to enable rate limiter",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "anonPermanentBlock",
      "service": "SwiftOpenAIProxy",
      "description": "Blocked request threshold for banning all anonymous users",
      "secret": false,
      "strategy": "default",
      "default": "50"
    },
    {
      "key": "userPermanentBlock",
      "service": "SwiftOpenAIProxy",
      "description": "Blocked request threshold for permanent user ban",
      "secret": false,
      "strategy": "default",
      "default": "50"
    },
    {
      "key": "OpenAI-Organization",
      "service": "SwiftOpenAIProxy",
      "description": "Your OpenAI org identifier (\"org-...\")",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "allowKeyPassthrough",
      "service": "SwiftOpenAIProxy",
      "description": "Allows end-users to use their own OpenAI API key",
      "secret": true,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "anonHourlyRateLimit",
      "service": "SwiftOpenAIProxy",
      "description": "Combined max queries per hour for all anonymous users",
      "secret": false,
      "strategy": "default",
      "default": "200"
    },
    {
      "key": "anonMinuteRateLimit",
      "service": "SwiftOpenAIProxy",
      "description": "Combined max queries per minute for all anonymous users",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "userHourlyRateLimit",
      "service": "SwiftOpenAIProxy",
      "description": "Max queries per hour per registered user",
      "secret": false,
      "strategy": "default",
      "default": "50"
    },
    {
      "key": "userMinuteRateLimit",
      "service": "SwiftOpenAIProxy",
      "description": "Max queries per minute per registered user",
      "secret": false,
      "strategy": "default",
      "default": "15"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ocPcV2"
      }
    },
    "cli": "railway deploy --template ocPcV2",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "06eae55c-17af-410a-b6b8-5bc7bb699c33",
            "serializedConfig": {
              "services": {
                "7ae64d4d-19e7-48f7-94fa-754166d08c76": {
                  "name": "SwiftOpenAIProxy",
                  "build": {},
                  "deploy": {},
                  "source": {
                    "repo": "https://github.com/ronaldmannak/SwiftOpenAIProxy"
                  },
                  "variables": {
                    "IAPKeyId": {
                      "isOptional": false,
                      "description": "IAP key Id",
                      "defaultValue": "{{IAPKeyId}}"
                    },
                    "appTeamId": {
                      "isOptional": false,
                      "description": "Apple app team Id",
                      "defaultValue": "{{appTeamId}}"
                    },
                    "appAppleId": {
                      "isOptional": false,
                      "description": "app Apple Id",
                      "defaultValue": "{{appAppleId}}"
                    },
                    "IAPIssuerId": {
                      "isOptional": false,
                      "description": "IAP Issuer Id",
                      "defaultValue": "{{IAPIssuerId}}"
                    },
                    "appBundleId": {
                      "isOptional": false,
                      "description": "Your app's bundle Id",
                      "defaultValue": "{{appBundleId}}"
                    },
                    "IAPPrivateKey": {
                      "isOptional": false,
                      "description": "App Store Connect generated IAP key. Single line. Replace newlines with //n",
                      "defaultValue": "{{IAPPrivateKey}}"
                    },
                    "JWTPrivateKey": {
                      "isOptional": false,
                      "description": "For generating tokens between your client app and the proxy",
                      "defaultValue": "{{JWTPrivateKey}}"
                    },
                    "OpenAI-APIKey": {
                      "isOptional": false,
                      "description": "Your OpenAI API key (\"sk-...\")",
                      "defaultValue": "{{OpenAI-APIKey}}"
                    },
                    "tokenExpiration": {
                      "isOptional": false,
                      "description": "token expiration in hours",
                      "defaultValue": "24"
                    },
                    "enableRateLimiter": {
                      "isOptional": false,
                      "description": "Set to 1 to enable rate limiter",
                      "defaultValue": "0"
                    },
                    "anonPermanentBlock": {
                      "isOptional": false,
                      "description": "Blocked request threshold for banning all anonymous users",
                      "defaultValue": "50"
                    },
                    "userPermanentBlock": {
                      "isOptional": false,
                      "description": "Blocked request threshold for permanent user ban",
                      "defaultValue": "50"
                    },
                    "OpenAI-Organization": {
                      "isOptional": false,
                      "description": "Your OpenAI org identifier (\"org-...\")",
                      "defaultValue": "{{OpenAI-Organization}}"
                    },
                    "allowKeyPassthrough": {
                      "isOptional": false,
                      "description": "Allows end-users to use their own OpenAI API key",
                      "defaultValue": "1"
                    },
                    "anonHourlyRateLimit": {
                      "isOptional": true,
                      "description": "Combined max queries per hour for all anonymous users",
                      "defaultValue": "200"
                    },
                    "anonMinuteRateLimit": {
                      "isOptional": true,
                      "description": "Combined max queries per minute for all anonymous users",
                      "defaultValue": "60"
                    },
                    "userHourlyRateLimit": {
                      "isOptional": false,
                      "description": "Max queries per hour per registered user",
                      "defaultValue": "50"
                    },
                    "userMinuteRateLimit": {
                      "isOptional": false,
                      "description": "Max queries per minute per registered user",
                      "defaultValue": "15"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0"
}
