{
  "manifest_version": "1.0.0",
  "template": {
    "id": "035a8331-318a-4f6e-8492-967575269768",
    "slug": "hexo",
    "name": "Hexo",
    "description": "Hexo — fast static blog framework with admin editor and S3 media storage",
    "url": "https://railway.com/deploy/hexo",
    "upstream": {
      "repo_url": "https://github.com/INAPP-Mobile/hexo"
    }
  },
  "services": [
    {
      "name": "storage",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/hexo"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "comments",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/hexo"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "hexo",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/hexo"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "storage",
      "description": "Container timezone (IANA name).",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "storage",
      "description": "Port the MinIO S3 API listens on.",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "CONSOLE_PORT",
      "service": "storage",
      "description": "Port the MinIO web console listens on.",
      "secret": false,
      "strategy": "default",
      "default": "9001"
    },
    {
      "key": "MINIO_ROOT_USER",
      "service": "storage",
      "description": "S3 root username for the MinIO object store.",
      "secret": false,
      "strategy": "default",
      "default": "minioadmin"
    },
    {
      "key": "MINIO_ROOT_PASSWORD",
      "service": "storage",
      "description": "Auto-generated S3 root password for MinIO.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "TZ",
      "service": "comments",
      "description": "Container timezone (IANA name).",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "comments",
      "description": "Port the Artalk comment service listens on.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "ARTALK_LOCALE",
      "service": "comments",
      "description": "UI language (e.g. en, zh-CN, ja, fr, ko, ru, tr).",
      "secret": false,
      "strategy": "default",
      "default": "en"
    },
    {
      "key": "ARTALK_APP_KEY",
      "service": "comments",
      "description": "JWT signing key for Artalk (must be stable across restarts). Auto-generated on deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ARTALK_DB_TYPE",
      "service": "comments",
      "description": "Comment database: sqlite (default) or pgsql/mysql/mssql.",
      "secret": false,
      "strategy": "default",
      "default": "sqlite"
    },
    {
      "key": "ARTALK_SITE_URL",
      "service": "comments",
      "description": "Public URL of the Artalk service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ARTALK_TIMEZONE",
      "service": "comments",
      "description": "Timezone for Artalk (IANA name).",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "ARTALK_SITE_NAME",
      "service": "comments",
      "description": "Site name used by the Artalk comment system.",
      "secret": false,
      "strategy": "default",
      "default": "My Hexo Blog"
    },
    {
      "key": "ARTALK_ADMIN_EMAIL",
      "service": "comments",
      "description": "Email of the first comment moderator.",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "ARTALK_ADMIN_PASSWORD",
      "service": "comments",
      "description": "Auto-generated password for the Artalk moderator account.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ARTALK_TRUSTED_DOMAINS",
      "service": "comments",
      "description": "Extra origins allowed to call the comment API (auto-includes hexo domain).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "TZ",
      "service": "hexo",
      "description": "Container timezone (IANA name).",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "hexo",
      "description": "Port the container listens on (nginx).",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "MINIO_BUCKET",
      "service": "hexo",
      "description": "Bucket where editor-uploaded images are stored (auto-created on first upload).",
      "secret": false,
      "strategy": "default",
      "default": "blog-images"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "hexo",
      "description": "Auto-generated password for hexo-admin and the /terminal/ basic-auth gate.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ADMIN_USERNAME",
      "service": "hexo",
      "description": "Username for hexo-admin and the /terminal/ basic-auth gate.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "MINIO_ENDPOINT",
      "service": "hexo",
      "description": "S3 endpoint for the storage service (auto-derived from its public domain). Enables S3-backed image uploads from the editor.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ARTALK_SITE_URL",
      "service": "hexo",
      "description": "Public URL of the Artalk comment service (auto-derived from the comments service's public domain).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "MINIO_ACCESS_KEY",
      "service": "hexo",
      "description": "S3 access key for the storage service (shared from storage.MINIO_ROOT_USER).",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MINIO_SECRET_KEY",
      "service": "hexo",
      "description": "S3 secret key for the storage service (shared from storage.MINIO_ROOT_PASSWORD).",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "hexo"
      }
    },
    "cli": "railway deploy --template hexo",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "035a8331-318a-4f6e-8492-967575269768",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "13195822-07cf-4690-9621-1ce265fa36e8": {
                  "icon": null,
                  "name": "storage",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/hexo",
                    "rootDirectory": "storage"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Container timezone (IANA name).",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the MinIO S3 API listens on.",
                      "defaultValue": "9000"
                    },
                    "CONSOLE_PORT": {
                      "isOptional": false,
                      "description": "Port the MinIO web console listens on.",
                      "defaultValue": "9001"
                    },
                    "MINIO_ROOT_USER": {
                      "isOptional": false,
                      "description": "S3 root username for the MinIO object store.",
                      "defaultValue": "minioadmin"
                    },
                    "MINIO_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated S3 root password for MinIO.",
                      "defaultValue": "{{MINIO_ROOT_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "13195822-07cf-4690-9621-1ce265fa36e8": {
                      "mountPath": "/data"
                    }
                  }
                },
                "31f9d147-7f42-4716-a765-05b7693b74f4": {
                  "icon": null,
                  "name": "comments",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/hexo",
                    "rootDirectory": "comments"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Container timezone (IANA name).",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the Artalk comment service listens on.",
                      "defaultValue": "8080"
                    },
                    "ARTALK_LOCALE": {
                      "isOptional": false,
                      "description": "UI language (e.g. en, zh-CN, ja, fr, ko, ru, tr).",
                      "defaultValue": "en"
                    },
                    "ARTALK_APP_KEY": {
                      "isOptional": false,
                      "description": "JWT signing key for Artalk (must be stable across restarts). Auto-generated on deploy.",
                      "defaultValue": "{{ARTALK_APP_KEY}}"
                    },
                    "ARTALK_DB_TYPE": {
                      "isOptional": false,
                      "description": "Comment database: sqlite (default) or pgsql/mysql/mssql.",
                      "defaultValue": "sqlite"
                    },
                    "ARTALK_SITE_URL": {
                      "isOptional": false,
                      "description": "Public URL of the Artalk service.",
                      "defaultValue": "https://${{comments.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "ARTALK_TIMEZONE": {
                      "isOptional": false,
                      "description": "Timezone for Artalk (IANA name).",
                      "defaultValue": "UTC"
                    },
                    "ARTALK_SITE_NAME": {
                      "isOptional": false,
                      "description": "Site name used by the Artalk comment system.",
                      "defaultValue": "My Hexo Blog"
                    },
                    "ARTALK_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Email of the first comment moderator.",
                      "defaultValue": "admin@example.com"
                    },
                    "ARTALK_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated password for the Artalk moderator account.",
                      "defaultValue": "{{ARTALK_ADMIN_PASSWORD}}"
                    },
                    "ARTALK_TRUSTED_DOMAINS": {
                      "isOptional": false,
                      "description": "Extra origins allowed to call the comment API (auto-includes hexo domain).",
                      "defaultValue": "${{hexo.RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "31f9d147-7f42-4716-a765-05b7693b74f4": {
                      "mountPath": "/data"
                    }
                  }
                },
                "f7ca7c56-b197-4e81-bb51-c4ea87a784e2": {
                  "icon": null,
                  "name": "hexo",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/hexo",
                    "rootDirectory": null
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Container timezone (IANA name).",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the container listens on (nginx).",
                      "defaultValue": "80"
                    },
                    "MINIO_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket where editor-uploaded images are stored (auto-created on first upload).",
                      "defaultValue": "blog-images"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated password for hexo-admin and the /terminal/ basic-auth gate.",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "ADMIN_USERNAME": {
                      "isOptional": false,
                      "description": "Username for hexo-admin and the /terminal/ basic-auth gate.",
                      "defaultValue": "admin"
                    },
                    "MINIO_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3 endpoint for the storage service (auto-derived from its public domain). Enables S3-backed image uploads from the editor.",
                      "defaultValue": "https://${{storage.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "ARTALK_SITE_URL": {
                      "isOptional": false,
                      "description": "Public URL of the Artalk comment service (auto-derived from the comments service's public domain).",
                      "defaultValue": "https://${{comments.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "MINIO_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "S3 access key for the storage service (shared from storage.MINIO_ROOT_USER).",
                      "defaultValue": "${{storage.MINIO_ROOT_USER}}"
                    },
                    "MINIO_SECRET_KEY": {
                      "isOptional": false,
                      "description": "S3 secret key for the storage service (shared from storage.MINIO_ROOT_PASSWORD).",
                      "defaultValue": "${{storage.MINIO_ROOT_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "f7ca7c56-b197-4e81-bb51-c4ea87a784e2": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T16:15:12.787Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T18:18:24.066Z",
  "success_rate_30d": 0.3333,
  "validation": {
    "last_run_id": "run_1cb3d67cbdff41dda052",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "BUILDING,BUILDING,FAILED"
      }
    ],
    "typical_ready_seconds": 152,
    "typical_build_seconds": 51,
    "typical_start_seconds": 10,
    "slowest_service": "hexo"
  }
}
