{
  "manifest_version": "1.0.0",
  "template": {
    "id": "3a5463f3-2fe0-48af-9c15-8174d42535a4",
    "slug": "pingvin-share-x-railway",
    "name": "Pingvin Share X",
    "description": "Share files by link with expiry, passwords and reverse uploads",
    "url": "https://railway.com/deploy/pingvin-share-x-railway",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/pingvin-share-x-railway"
    }
  },
  "services": [
    {
      "name": "clamav",
      "source": {
        "image": "clamav/clamav:stable"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/clamav",
      "http": false
    },
    {
      "name": "pingvin-share-x",
      "source": {
        "repo": "https://github.com/gridalpha/pingvin-share-x-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/opt/app/backend/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "FRESHCLAM_CHECKS",
      "service": "clamav",
      "description": "Signature update checks per day",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "CLAMAV_NO_MILTERD",
      "service": "clamav",
      "description": "Skip the unused mail milter",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PORT",
      "service": "pingvin-share-x",
      "description": "Port the bundled Caddy serves",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "S3_KEY",
      "service": "pingvin-share-x",
      "description": "File bucket key id",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "APP_URL",
      "service": "pingvin-share-x",
      "description": "Public URL used in share links",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "S3_REGION",
      "service": "pingvin-share-x",
      "description": "File bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET",
      "service": "pingvin-share-x",
      "description": "File bucket secret",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_ENABLED",
      "service": "pingvin-share-x",
      "description": "Store files in object storage",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ADMIN_EMAIL",
      "service": "pingvin-share-x",
      "description": "First admin email address",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "CLAMAV_HOST",
      "service": "pingvin-share-x",
      "description": "Private virus scanner host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "CLAMAV_PORT",
      "service": "pingvin-share-x",
      "description": "Virus scanner clamd port",
      "secret": false,
      "strategy": "default",
      "default": "3310"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "pingvin-share-x",
      "description": "File bucket endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "pingvin-share-x",
      "description": "First admin password, created once",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ADMIN_USERNAME",
      "service": "pingvin-share-x",
      "description": "First admin username",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "S3_BUCKET_NAME",
      "service": "pingvin-share-x",
      "description": "File bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SECURE_COOKIES",
      "service": "pingvin-share-x",
      "description": "Mark session cookies secure",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "S3_USE_CHECKSUM",
      "service": "pingvin-share-x",
      "description": "Checksums only when API requires",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ALLOW_REGISTRATION",
      "service": "pingvin-share-x",
      "description": "Keep self-registration closed",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ALLOW_UNAUTHENTICATED_SHARES",
      "service": "pingvin-share-x",
      "description": "Only signed-in users create shares",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "pingvin-share-x-railway"
      }
    },
    "cli": "railway deploy --template pingvin-share-x-railway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "3a5463f3-2fe0-48af-9c15-8174d42535a4",
            "serializedConfig": {
              "buckets": {
                "f5fc4ee6-d086-43fb-bae1-de275bb2568a": {
                  "name": "pingvin-files"
                }
              },
              "services": {
                "46e0e9bc-7155-4acb-ba07-0979c879f9f2": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/clam-av.svg",
                  "name": "clamav",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "clamav/clamav:stable"
                  },
                  "variables": {
                    "FRESHCLAM_CHECKS": {
                      "isOptional": false,
                      "description": "Signature update checks per day",
                      "defaultValue": "2"
                    },
                    "CLAMAV_NO_MILTERD": {
                      "isOptional": false,
                      "description": "Skip the unused mail milter",
                      "defaultValue": "true"
                    }
                  },
                  "volumeMounts": {
                    "46e0e9bc-7155-4acb-ba07-0979c879f9f2": {
                      "mountPath": "/var/lib/clamav"
                    }
                  }
                },
                "aee447e0-746f-4486-abe2-26e4406c898f": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/pingvin-share.svg",
                  "name": "pingvin-share-x",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/pingvin-share-x-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the bundled Caddy serves",
                      "defaultValue": "3000"
                    },
                    "S3_KEY": {
                      "isOptional": false,
                      "description": "File bucket key id",
                      "defaultValue": "${{pingvin-files.ACCESS_KEY_ID}}"
                    },
                    "APP_URL": {
                      "isOptional": false,
                      "description": "Public URL used in share links",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "S3_REGION": {
                      "isOptional": false,
                      "description": "File bucket region",
                      "defaultValue": "${{pingvin-files.REGION}}"
                    },
                    "S3_SECRET": {
                      "isOptional": false,
                      "description": "File bucket secret",
                      "defaultValue": "${{pingvin-files.SECRET_ACCESS_KEY}}"
                    },
                    "S3_ENABLED": {
                      "isOptional": false,
                      "description": "Store files in object storage",
                      "defaultValue": "true"
                    },
                    "ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "First admin email address",
                      "defaultValue": "admin@example.com"
                    },
                    "CLAMAV_HOST": {
                      "isOptional": false,
                      "description": "Private virus scanner host",
                      "defaultValue": "${{clamav.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "CLAMAV_PORT": {
                      "isOptional": false,
                      "description": "Virus scanner clamd port",
                      "defaultValue": "3310"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "File bucket endpoint",
                      "defaultValue": "${{pingvin-files.ENDPOINT}}"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "First admin password, created once",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "ADMIN_USERNAME": {
                      "isOptional": false,
                      "description": "First admin username",
                      "defaultValue": "admin"
                    },
                    "S3_BUCKET_NAME": {
                      "isOptional": false,
                      "description": "File bucket name",
                      "defaultValue": "${{pingvin-files.BUCKET}}"
                    },
                    "SECURE_COOKIES": {
                      "isOptional": false,
                      "description": "Mark session cookies secure",
                      "defaultValue": "true"
                    },
                    "S3_USE_CHECKSUM": {
                      "isOptional": false,
                      "description": "Checksums only when API requires",
                      "defaultValue": "false"
                    },
                    "ALLOW_REGISTRATION": {
                      "isOptional": false,
                      "description": "Keep self-registration closed",
                      "defaultValue": "false"
                    },
                    "ALLOW_UNAUTHENTICATED_SHARES": {
                      "isOptional": false,
                      "description": "Only signed-in users create shares",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "aee447e0-746f-4486-abe2-26e4406c898f": {
                      "mountPath": "/opt/app/backend/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T17:09:19.156Z",
  "success_rate_30d": 0.1667,
  "validation": {
    "last_run_id": "run_8756829b07984a4f899e",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ],
    "typical_ready_seconds": 178,
    "typical_build_seconds": 30,
    "typical_start_seconds": 20,
    "slowest_service": "pingvin-share-x"
  }
}
