{
  "manifest_version": "1.0.0",
  "template": {
    "id": "31eb01f5-017a-40ca-83b4-3e89cf8ddc0d",
    "slug": "lore-server",
    "name": "Lore Server",
    "description": "Epic Games' Lore version control server, backed by a Railway bucket",
    "url": "https://railway.com/deploy/lore-server",
    "upstream": {
      "repo_url": "https://github.com/snowfall-games/lore-railway"
    }
  },
  "services": [
    {
      "name": "dynamodb",
      "source": {
        "image": "amazon/dynamodb-local:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "lore-server",
      "source": {
        "repo": "https://github.com/snowfall-games/lore-railway"
      },
      "needs_volume": false,
      "tcp_ports": [
        41337
      ],
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "RAILWAY_RUN_UID",
      "service": "dynamodb",
      "description": "Run as root so dynamodb-local can write to the attached volume.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "PORT",
      "service": "lore-server",
      "description": "Port Railway's health check probes. Leave as 41339, the Lore HTTP endpoint.",
      "secret": false,
      "strategy": "default",
      "default": "41339"
    },
    {
      "key": "AWS_REGION",
      "service": "lore-server",
      "description": "Bucket region for the AWS SDK, wired from the lore-store bucket by reference.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "lore-server",
      "description": "Access key for the lore-store bucket, wired by reference.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "lore-server",
      "description": "Secret key for the lore-store bucket, wired by reference.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LORE__PLUGINS__AWS__S3_BUCKET",
      "service": "lore-server",
      "description": "Bucket that stores Lore's fragment payloads, wired by reference.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LORE__PLUGINS__AWS__S3_REGION",
      "service": "lore-server",
      "description": "Region of the fragment payload bucket, wired by reference.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LORE__PLUGINS__AWS__S3_ENDPOINT_URL",
      "service": "lore-server",
      "description": "S3 endpoint of the fragment payload bucket, wired by reference.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LORE__PLUGINS__AWS__DYNAMODB_ENDPOINT_URL",
      "service": "lore-server",
      "description": "Private address of the dynamodb service that holds Lore's metadata tables.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "lore-server"
      }
    },
    "cli": "railway deploy --template lore-server",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "31eb01f5-017a-40ca-83b4-3e89cf8ddc0d",
            "serializedConfig": {
              "buckets": {
                "2b1bdf87-8b41-4783-9598-9ceb79ead1f0": {
                  "name": "lore-store"
                }
              },
              "services": {
                "7f98697b-dc6d-4188-8558-6a6afd027635": {
                  "icon": "https://cdn.jsdelivr.net/gh/devicons/devicon/icons/dynamodb/dynamodb-original.svg",
                  "name": "dynamodb",
                  "deploy": {
                    "startCommand": "java -jar DynamoDBLocal.jar -sharedDb -dbPath /data",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "amazon/dynamodb-local:latest"
                  },
                  "variables": {
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Run as root so dynamodb-local can write to the attached volume.",
                      "defaultValue": "0"
                    }
                  },
                  "volumeMounts": {
                    "7f98697b-dc6d-4188-8558-6a6afd027635": {
                      "mountPath": "/data"
                    }
                  }
                },
                "d7eadf74-03ed-4340-979d-1d3accaffed6": {
                  "icon": "https://epicgames.github.io/lore/assets/icons/Lore_Icon_White_V1.svg",
                  "name": "lore-server",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health_check",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/snowfall-games/lore-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway's health check probes. Leave as 41339, the Lore HTTP endpoint.",
                      "defaultValue": "41339"
                    },
                    "AWS_REGION": {
                      "isOptional": false,
                      "description": "Bucket region for the AWS SDK, wired from the lore-store bucket by reference.",
                      "defaultValue": "${{lore-store.REGION}}"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Access key for the lore-store bucket, wired by reference.",
                      "defaultValue": "${{lore-store.ACCESS_KEY_ID}}"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Secret key for the lore-store bucket, wired by reference.",
                      "defaultValue": "${{lore-store.SECRET_ACCESS_KEY}}"
                    },
                    "LORE__PLUGINS__AWS__S3_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket that stores Lore's fragment payloads, wired by reference.",
                      "defaultValue": "${{lore-store.BUCKET}}"
                    },
                    "LORE__PLUGINS__AWS__S3_REGION": {
                      "isOptional": false,
                      "description": "Region of the fragment payload bucket, wired by reference.",
                      "defaultValue": "${{lore-store.REGION}}"
                    },
                    "LORE__PLUGINS__AWS__S3_ENDPOINT_URL": {
                      "isOptional": false,
                      "description": "S3 endpoint of the fragment payload bucket, wired by reference.",
                      "defaultValue": "${{lore-store.ENDPOINT}}"
                    },
                    "LORE__PLUGINS__AWS__DYNAMODB_ENDPOINT_URL": {
                      "isOptional": false,
                      "description": "Private address of the dynamodb service that holds Lore's metadata tables.",
                      "defaultValue": "http://${{dynamodb.RAILWAY_PRIVATE_DOMAIN}}:8000"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "41337": {}
                    },
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "lore-server",
      "method": "GET",
      "path": "/health_check",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-11T16:14:44.435Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-11T06:17:51.263Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_9d4ac7a62ce04f05b62d",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ]
  }
}
