{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d88283df-6401-4274-bcc4-18dd77a5f56f",
    "slug": "LddOJ1",
    "name": "Nextcloud",
    "description": "Nextcloud server on Railway!",
    "url": "https://railway.com/deploy/LddOJ1",
    "upstream": {
      "image": "nextcloud"
    }
  },
  "services": [
    {
      "name": "Nextcloud",
      "source": {
        "image": "nextcloud"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/www/html",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Nextcloud",
      "description": "Should be 80!",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "OVERWRITEHOST",
      "service": "Nextcloud",
      "description": "Provide a value for OVERWRITEHOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SQLITE_DATABASE",
      "service": "Nextcloud",
      "description": "Name of SQLite for authentication features",
      "secret": false,
      "strategy": "default",
      "default": "nextcloud.db"
    },
    {
      "key": "TRUSTED_PROXIES",
      "service": "Nextcloud",
      "description": "List of trusted proxies",
      "secret": false,
      "strategy": "default",
      "default": "100.0.0.0/8"
    },
    {
      "key": "OVERWRITEPROTOCOL",
      "service": "Nextcloud",
      "description": "Provide a value for OVERWRITEPROTOCOL.",
      "secret": false,
      "strategy": "default",
      "default": "https"
    },
    {
      "key": "OBJECTSTORE_S3_SSL",
      "service": "Nextcloud",
      "description": "(default: true): Whether or not SSL/TLS should be used to communicate with object storage server",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "NEXTCLOUD_TRUSTED_DOMAINS",
      "service": "Nextcloud",
      "description": "Optional space-separated list of domains",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "OBJECTSTORE_S3_AUTOCREATE",
      "service": "Nextcloud",
      "description": "(default: true): Create the container if it does not exist",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OBJECTSTORE_S3_LEGACYAUTH",
      "service": "Nextcloud",
      "description": "(default: false): Not required for AWS S3",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "OBJECTSTORE_S3_OBJECT_PREFIX",
      "service": "Nextcloud",
      "description": "(default: urn:oid:): Prefix to prepend to the fileid",
      "secret": false,
      "strategy": "default",
      "default": "urn:oid"
    },
    {
      "key": "OBJECTSTORE_S3_USEPATH_STYLE",
      "service": "Nextcloud",
      "description": "(default: false): Not required for AWS S3",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "LddOJ1"
      }
    },
    "cli": "railway deploy --template LddOJ1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d88283df-6401-4274-bcc4-18dd77a5f56f",
            "serializedConfig": {
              "services": {
                "2c0d1249-92ad-46f1-8c57-61588c748463": {
                  "name": "Nextcloud",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "nextcloud"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Should be 80!",
                      "defaultValue": "80"
                    },
                    "OVERWRITEHOST": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SQLITE_DATABASE": {
                      "isOptional": false,
                      "description": "Name of SQLite for authentication features",
                      "defaultValue": "nextcloud.db"
                    },
                    "TRUSTED_PROXIES": {
                      "isOptional": false,
                      "description": "List of trusted proxies",
                      "defaultValue": "100.0.0.0/8"
                    },
                    "OVERWRITEPROTOCOL": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "https"
                    },
                    "OBJECTSTORE_S3_KEY": {
                      "isOptional": true,
                      "description": "AWS style access key"
                    },
                    "OBJECTSTORE_S3_SSL": {
                      "isOptional": true,
                      "description": "(default: true): Whether or not SSL/TLS should be used to communicate with object storage server",
                      "defaultValue": "true"
                    },
                    "OBJECTSTORE_S3_HOST": {
                      "isOptional": true,
                      "description": "The hostname of the object storage server"
                    },
                    "OBJECTSTORE_S3_PORT": {
                      "isOptional": true,
                      "description": "The port that the object storage server is being served over"
                    },
                    "OBJECTSTORE_S3_BUCKET": {
                      "isOptional": true,
                      "description": "The name of the bucket that Nextcloud should store the data in"
                    },
                    "OBJECTSTORE_S3_REGION": {
                      "isOptional": true,
                      "description": "The region that the S3 bucket resides in."
                    },
                    "OBJECTSTORE_S3_SECRET": {
                      "isOptional": true,
                      "description": "AWS style secret access key"
                    },
                    "NEXTCLOUD_TRUSTED_DOMAINS": {
                      "isOptional": true,
                      "description": "Optional space-separated list of domains",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "OBJECTSTORE_S3_AUTOCREATE": {
                      "isOptional": true,
                      "description": "(default: true): Create the container if it does not exist",
                      "defaultValue": "true"
                    },
                    "OBJECTSTORE_S3_LEGACYAUTH": {
                      "isOptional": true,
                      "description": "(default: false): Not required for AWS S3",
                      "defaultValue": "false"
                    },
                    "OBJECTSTORE_S3_OBJECT_PREFIX": {
                      "isOptional": true,
                      "description": "(default: urn:oid:): Prefix to prepend to the fileid",
                      "defaultValue": "urn:oid"
                    },
                    "OBJECTSTORE_S3_USEPATH_STYLE": {
                      "isOptional": true,
                      "description": "(default: false): Not required for AWS S3",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "2c0d1249-92ad-46f1-8c57-61588c748463": {
                      "mountPath": "/var/www/html"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-21T17:25:59.082Z",
  "success_rate_30d": 0.1667,
  "validation": {
    "last_run_id": "run_92814cd20d4a4856b646",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": false,
        "detail": "1 service(s) crashed within 30s"
      }
    ],
    "typical_ready_seconds": 63,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "Nextcloud"
  }
}
