{
  "manifest_version": "1.0.0",
  "template": {
    "id": "4b6406b2-640c-4fc5-b627-0b0b68af1ac8",
    "slug": "simplex-smp-server",
    "name": "SimpleX SMP Server",
    "description": "Private SimpleX SMP relay with persistent identity and public TCP ingress",
    "url": "https://railway.com/deploy/simplex-smp-server",
    "upstream": {
      "repo_url": "https://github.com/monotykamary/railway-template-simplex-chat"
    }
  },
  "services": [
    {
      "name": "simplex",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-simplex-chat"
      },
      "needs_volume": true,
      "volume_mount_path": "/etc/opt/simplex",
      "tcp_ports": [
        5223
      ],
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "simplex",
      "description": "HTTP status and Railway health-check port. Keep this at 8080.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "SIMPLEX_CREATE_PASSWORD",
      "service": "simplex",
      "description": "Password required to create new SMP queues. Generated for every deployment.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "simplex-smp-server"
      }
    },
    "cli": "railway deploy --template simplex-smp-server",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "4b6406b2-640c-4fc5-b627-0b0b68af1ac8",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "a30ac4df-2776-4914-a660-4df2bca82bfb": {
                  "icon": "https://raw.githubusercontent.com/monotykamary/railway-template-simplex-chat/03a650e21bc565b44e14dace1b564cc3dde3ad49/icon.png",
                  "name": "simplex",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/cgi-bin/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 180,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-simplex-chat",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP status and Railway health-check port. Keep this at 8080.",
                      "defaultValue": "8080"
                    },
                    "SIMPLEX_CREATE_PASSWORD": {
                      "isOptional": false,
                      "description": "Password required to create new SMP queues. Generated for every deployment.",
                      "defaultValue": "{{SIMPLEX_CREATE_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5223": {}
                    },
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "a30ac4df-2776-4914-a660-4df2bca82bfb": {
                      "mountPath": "/etc/opt/simplex",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "simplex",
      "method": "GET",
      "path": "/cgi-bin/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-05T06:07:25.694Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_3ee67626efcc42c0af48",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 82,
    "typical_build_seconds": 20,
    "typical_start_seconds": 10,
    "slowest_service": "simplex"
  }
}
