{
  "manifest_version": "1.0.0",
  "template": {
    "id": "0f11fe79-e996-4014-b225-6c13d27bac8a",
    "slug": "-bmO7p",
    "name": "Nx Custom Cache | Open Source Nx Cloud Alternative for Monorepos",
    "description": "Self-hosted Nx remote cache on your own bucket",
    "url": "https://railway.com/deploy/-bmO7p",
    "upstream": {
      "image": "ghcr.io/ikatsuba/nx-cache-server:1.2.0"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "nx-cache-server",
      "source": {
        "image": "ghcr.io/ikatsuba/nx-cache-server:1.2.0"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "AWS_REGION",
      "service": "nx-cache-server",
      "description": "Region of the Railway bucket that stores the cache artifacts.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_BUCKET_NAME",
      "service": "nx-cache-server",
      "description": "Name of the S3 bucket the cache is written to. Filled from the Railway bucket in this project.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_ENDPOINT_URL",
      "service": "nx-cache-server",
      "description": "S3 endpoint of the Railway bucket. Point it elsewhere to use your own S3-compatible storage.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "nx-cache-server",
      "description": "Access key for the bucket, issued by Railway.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "nx-cache-server",
      "description": "Secret key for the bucket, issued by Railway.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NX_CACHE_ACCESS_TOKEN",
      "service": "nx-cache-server",
      "description": "Bearer token every Nx client must send. Put it in NX_SELF_HOSTED_REMOTE_CACHE_ACCESS_TOKEN on your machines and in CI.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "-bmO7p"
      }
    },
    "cli": "railway deploy --template -bmO7p",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "0f11fe79-e996-4014-b225-6c13d27bac8a",
            "serializedConfig": {
              "buckets": {
                "7ec597c9-448c-4826-a33a-0f25fac2d257": {
                  "name": "Bucket"
                }
              },
              "services": {
                "81562651-0525-4eec-9c5a-fbd70e03d272": {
                  "name": "nx-cache-server",
                  "source": {
                    "image": "ghcr.io/ikatsuba/nx-cache-server:1.2.0"
                  },
                  "variables": {
                    "AWS_REGION": {
                      "description": "Region of the Railway bucket that stores the cache artifacts.",
                      "defaultValue": "${{Bucket.REGION}}"
                    },
                    "S3_BUCKET_NAME": {
                      "description": "Name of the S3 bucket the cache is written to. Filled from the Railway bucket in this project.",
                      "defaultValue": "${{Bucket.BUCKET}}"
                    },
                    "S3_ENDPOINT_URL": {
                      "description": "S3 endpoint of the Railway bucket. Point it elsewhere to use your own S3-compatible storage.",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "description": "Access key for the bucket, issued by Railway.",
                      "defaultValue": "${{Bucket.ACCESS_KEY_ID}}"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "description": "Secret key for the bucket, issued by Railway.",
                      "defaultValue": "${{Bucket.SECRET_ACCESS_KEY}}"
                    },
                    "NX_CACHE_ACCESS_TOKEN": {
                      "description": "Bearer token every Nx client must send. Put it in NX_SELF_HOSTED_REMOTE_CACHE_ACCESS_TOKEN on your machines and in CI.",
                      "defaultValue": "{{NX_CACHE_ACCESS_TOKEN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-09T00:02:40.379Z",
  "generator_version": "0.1.0"
}
