{
  "manifest_version": "1.0.0",
  "template": {
    "id": "402b3300-47a1-4e82-8fbf-33f4a5cea7ce",
    "slug": "public-bucket-image-proxy",
    "name": "Public Bucket Image Proxy",
    "description": "Public proxy for images in a bucket, with image optimization using imgproxy",
    "url": "https://railway.com/deploy/public-bucket-image-proxy",
    "upstream": {
      "image": "ghcr.io/imgproxy/imgproxy:v3"
    }
  },
  "services": [
    {
      "name": "public imgproxy",
      "source": {
        "image": "ghcr.io/imgproxy/imgproxy:v3"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "IMGPROXY_USE_S3",
      "service": "public imgproxy",
      "description": "enables image fetching from Amazon S3 buckets",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "public imgproxy",
      "description": "the S3 bucket's access key id",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "IMGPROXY_AUTO_AVIF",
      "service": "public imgproxy",
      "description": "enables AVIF support detection. When the file extension is omitted in the imgproxy URL and browser supports AVIF, imgproxy will use it as the resulting format",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "IMGPROXY_AUTO_WEBP",
      "service": "public imgproxy",
      "description": "enables WebP support detection. When the file extension is omitted in the imgproxy URL and browser supports WebP, imgproxy will use it as the resulting format",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "IMGPROXY_S3_REGION",
      "service": "public imgproxy",
      "description": "the S3 bucket's region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "IMGPROXY_S3_ENDPOINT",
      "service": "public imgproxy",
      "description": "the S3 endpoint imgproxy should use",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "public imgproxy",
      "description": "the S3 bucket's secret access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "IMGPROXY_ALLOWED_SOURCES",
      "service": "public imgproxy",
      "description": "an allowlist of source image URL prefixes divided by comma",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "IMGPROXY_SKIP_PROCESSING_FORMATS",
      "service": "public imgproxy",
      "description": "a list of formats that imgproxy shouldn't process, comma divided",
      "secret": false,
      "strategy": "default",
      "default": "gif"
    },
    {
      "key": "IMGPROXY_S3_ENDPOINT_USE_PATH_STYLE",
      "service": "public imgproxy",
      "description": "controls to access the S3 bucket constructed using the path style",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "public-bucket-image-proxy"
      }
    },
    "cli": "railway deploy --template public-bucket-image-proxy",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "402b3300-47a1-4e82-8fbf-33f4a5cea7ce",
            "serializedConfig": {
              "buckets": {
                "ea42567b-6592-4771-8670-2c916df0a7c2": {
                  "name": "raw images"
                }
              },
              "services": {
                "7b4c5f23-19ca-4628-9ae9-db15bfbf8bc6": {
                  "icon": "https://imgproxy.net/apple-touch-icon.png",
                  "name": "public imgproxy",
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "image": "ghcr.io/imgproxy/imgproxy:v3"
                  },
                  "variables": {
                    "IMGPROXY_USE_S3": {
                      "isOptional": false,
                      "description": "enables image fetching from Amazon S3 buckets",
                      "defaultValue": "true"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "the S3 bucket's access key id",
                      "defaultValue": "${{\"raw images\".ACCESS_KEY_ID}}"
                    },
                    "IMGPROXY_AUTO_AVIF": {
                      "isOptional": true,
                      "description": "enables AVIF support detection. When the file extension is omitted in the imgproxy URL and browser supports AVIF, imgproxy will use it as the resulting format",
                      "defaultValue": "true"
                    },
                    "IMGPROXY_AUTO_WEBP": {
                      "isOptional": true,
                      "description": "enables WebP support detection. When the file extension is omitted in the imgproxy URL and browser supports WebP, imgproxy will use it as the resulting format",
                      "defaultValue": "true"
                    },
                    "IMGPROXY_S3_REGION": {
                      "isOptional": false,
                      "description": "the S3 bucket's region",
                      "defaultValue": "${{\"raw images\".REGION}}"
                    },
                    "IMGPROXY_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "the S3 endpoint imgproxy should use",
                      "defaultValue": "${{\"raw images\".ENDPOINT}}"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "the S3 bucket's secret access key",
                      "defaultValue": "${{\"raw images\".SECRET_ACCESS_KEY}}"
                    },
                    "IMGPROXY_ALLOWED_SOURCES": {
                      "isOptional": false,
                      "description": "an allowlist of source image URL prefixes divided by comma",
                      "defaultValue": "s3://${{\"raw images\".BUCKET}}/"
                    },
                    "IMGPROXY_MAX_RESULT_DIMENSION": {
                      "isOptional": true,
                      "description": "maximum width or height the resultant image can have, in pixels",
                      "defaultValue": ""
                    },
                    "IMGPROXY_SKIP_PROCESSING_FORMATS": {
                      "isOptional": true,
                      "description": "a list of formats that imgproxy shouldn't process, comma divided",
                      "defaultValue": "gif"
                    },
                    "IMGPROXY_S3_ENDPOINT_USE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "controls to access the S3 bucket constructed using the path style",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "public imgproxy",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-14T22:14:43.073Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-14T01:47:44.340Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_849b749ebba246c79783",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ]
  }
}
