{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c20bb565-ee66-41c8-9924-c84385cc7656",
    "slug": "gy64fz",
    "name": "Multi-Scrobbler",
    "description": "Scrobble music from multiple sources to multiple clients",
    "url": "https://railway.com/deploy/gy64fz",
    "upstream": {
      "image": "foxxmd/multi-scrobbler"
    }
  },
  "services": [
    {
      "name": "Multi-Scrobbler",
      "source": {
        "image": "foxxmd/multi-scrobbler"
      },
      "needs_volume": true,
      "volume_mount_path": "/config",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "Multi-Scrobbler",
      "description": "Timezone for logs and dashboard timestamps (e.g., America/Los_Angeles)",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "Multi-Scrobbler",
      "description": "Internal port for the Multi-Scrobbler web dashboard and API",
      "secret": false,
      "strategy": "default",
      "default": "9078"
    },
    {
      "key": "BASE_URL",
      "service": "Multi-Scrobbler",
      "description": "Public URL used to auto-generate OAuth callback redirect URIs",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DISABLE_WEB",
      "service": "Multi-Scrobbler",
      "description": "Set to true to disable the web UI and HTTP server after setup (WARNING: Ingress/webhook sources will not work when enabled)",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "gy64fz"
      }
    },
    "cli": "railway deploy --template gy64fz",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c20bb565-ee66-41c8-9924-c84385cc7656",
            "serializedConfig": {
              "services": {
                "b5b20a23-b60f-46d0-bfa7-1b97ae2c5ba9": {
                  "icon": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/svg/multi-scrobbler.svg",
                  "name": "Multi-Scrobbler",
                  "deploy": {
                    "healthcheckPath": "/api/health"
                  },
                  "source": {
                    "image": "foxxmd/multi-scrobbler"
                  },
                  "variables": {
                    "TZ": {
                      "description": "Timezone for logs and dashboard timestamps (e.g., America/Los_Angeles)",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "description": "Internal port for the Multi-Scrobbler web dashboard and API",
                      "defaultValue": "9078"
                    },
                    "LZ_URL": {
                      "isOptional": true,
                      "description": "Optional: Custom ListenBrainz server URL (leave blank for official listenbrainz.org)",
                      "defaultValue": ""
                    },
                    "LZ_USER": {
                      "isOptional": true,
                      "description": "Optional: ListenBrainz Client username",
                      "defaultValue": ""
                    },
                    "BASE_URL": {
                      "description": "Public URL used to auto-generate OAuth callback redirect URIs",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "LZ_TOKEN": {
                      "isOptional": true,
                      "description": "Optional: ListenBrainz Client user token",
                      "defaultValue": ""
                    },
                    "PLEX_URL": {
                      "isOptional": true,
                      "description": "Optional: Plex server URL (e.g., https://plex.mydomain.com:32400)",
                      "defaultValue": ""
                    },
                    "KOITO_URL": {
                      "isOptional": true,
                      "description": "Optional: Koito server base URL",
                      "defaultValue": ""
                    },
                    "KOITO_USER": {
                      "isOptional": true,
                      "description": "Optional: Koito username",
                      "defaultValue": ""
                    },
                    "MALOJA_URL": {
                      "isOptional": true,
                      "description": "Optional: Maloja server URL",
                      "defaultValue": ""
                    },
                    "PLEX_TOKEN": {
                      "isOptional": true,
                      "description": "Optional: Plex X-Plex-Token",
                      "defaultValue": ""
                    },
                    "DISABLE_WEB": {
                      "description": "Set to true to disable the web UI and HTTP server after setup (WARNING: Ingress/webhook sources will not work when enabled)",
                      "defaultValue": "false"
                    },
                    "KOITO_TOKEN": {
                      "isOptional": true,
                      "description": "Optional: Koito API Key",
                      "defaultValue": ""
                    },
                    "JELLYFIN_URL": {
                      "isOptional": true,
                      "description": "Optional: Jellyfin server URL (e.g., https://jellyfin.mydomain.com)",
                      "defaultValue": ""
                    },
                    "JELLYFIN_USER": {
                      "isOptional": true,
                      "description": "Optional: Jellyfin username to track",
                      "defaultValue": ""
                    },
                    "LASTFM_SECRET": {
                      "isOptional": true,
                      "description": "Optional: Last.fm Client Shared Secret",
                      "defaultValue": ""
                    },
                    "LASTFM_API_KEY": {
                      "isOptional": true,
                      "description": "Optional: Last.fm Client API Key for scrobbling TO Last.fm (Callback: https://<domain>/lastfm/callback)",
                      "defaultValue": ""
                    },
                    "MALOJA_API_KEY": {
                      "isOptional": true,
                      "description": "Optional: Maloja API Key",
                      "defaultValue": ""
                    },
                    "JELLYFIN_APIKEY": {
                      "isOptional": true,
                      "description": "Optional: Jellyfin API Key (created under Dashboard -> API Keys)",
                      "defaultValue": ""
                    },
                    "PLEX_USERS_ALLOW": {
                      "isOptional": true,
                      "description": "Optional: Comma-delimited list of Plex usernames to scrobble (defaults to token owner)",
                      "defaultValue": ""
                    },
                    "SPOTIFY_CLIENT_ID": {
                      "isOptional": true,
                      "description": "Optional: Spotify Developer App Client ID (set Redirect URI to https://<domain>/callback)",
                      "defaultValue": ""
                    },
                    "SOURCE_LASTFM_SECRET": {
                      "isOptional": true,
                      "description": "Optional: Last.fm Source Shared Secret",
                      "defaultValue": ""
                    },
                    "SOURCE_LASTFM_API_KEY": {
                      "isOptional": true,
                      "description": "Optional: Last.fm Source API Key to monitor & forward your Last.fm history (Callback: https://<domain>/lastfm/callback)",
                      "defaultValue": ""
                    },
                    "SPOTIFY_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "Optional: Spotify Developer App Client Secret",
                      "defaultValue": ""
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "b5b20a23-b60f-46d0-bfa7-1b97ae2c5ba9": {
                      "mountPath": "/config"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Multi-Scrobbler",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-18T16:14:44.681Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-17T09:16:15.222Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_e9268d4db5b94f29bcda",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 67,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "Multi-Scrobbler"
  }
}
