{
  "manifest_version": "1.0.0",
  "template": {
    "id": "4a3793d0-556f-4a4b-a82d-aadfc3f999b4",
    "slug": "self-hosted-panel",
    "name": "SEVO Panel",
    "description": "VLESS panel over WebSocket + telegram mtproxy.(self-hosted)",
    "url": "https://railway.com/deploy/self-hosted-panel",
    "upstream": {
      "repo_url": "https://github.com/SE7O-SNA/SE7O-SNA-panel"
    }
  },
  "services": [
    {
      "name": "SE7O-SNA-panel",
      "source": {
        "repo": "https://github.com/SE7O-SNA/SE7O-SNA-panel"
      },
      "needs_volume": true,
      "volume_mount_path": "/data/",
      "tcp_ports": [
        443
      ],
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "SE7O-SNA-panel",
      "description": "Listening port. Most platforms inject their own value.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "DOMAIN",
      "service": "SE7O-SNA-panel",
      "description": "The public service or customer domain, of the form `example.up.railway.app`",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DB_PATH",
      "service": "SE7O-SNA-panel",
      "description": "SQLite file location. Mount a persistent volume at /data to keep data across restarts.",
      "secret": false,
      "strategy": "default",
      "default": "/data/panel.db"
    },
    {
      "key": "WORKERS",
      "service": "SE7O-SNA-panel",
      "description": "Number of worker processes. Higher value = better performance with many concurrent users.",
      "secret": false,
      "strategy": "default",
      "default": "4"
    },
    {
      "key": "SECRET_KEY",
      "service": "SE7O-SNA-panel",
      "description": "Signs JWT session cookies. If unset, a new key is generated on every restart and all sessions are invalidated.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MTPROXY_PORT",
      "service": "SE7O-SNA-panel",
      "description": "Port mtg binds to inside the container. This is the value you enter when creating the TCP proxy.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "SE7O-SNA-panel",
      "description": "Panel login password. Minimum 8 characters with upper case, lower case, and a digit.",
      "secret": true,
      "strategy": "default",
      "default": "StrongPass!123"
    },
    {
      "key": "ADMIN_USERNAME",
      "service": "SE7O-SNA-panel",
      "description": "Panel login username. Defaults to admin.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "MTPROXY_ENABLED",
      "service": "SE7O-SNA-panel",
      "description": "Set to false to run the panel without the Telegram proxy.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "MTPROXY_PUBLIC_HOST",
      "service": "SE7O-SNA-panel",
      "description": "The public TCP proxy domain for the service, if applicable. Example: `roundhouse.proxy.rlwy.net`",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MTPROXY_PUBLIC_PORT",
      "service": "SE7O-SNA-panel",
      "description": "The external port for the TCP Proxy.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "self-hosted-panel"
      }
    },
    "cli": "railway deploy --template self-hosted-panel",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "4a3793d0-556f-4a4b-a82d-aadfc3f999b4",
            "serializedConfig": {
              "services": {
                "2b26d113-eef7-4438-ab5e-0bf734075445": {
                  "icon": "https://raw.githubusercontent.com/SE7O-SNA/SE7O-SNA-panel/refs/heads/main/app/static/img/logo-360.png",
                  "name": "SE7O-SNA-panel",
                  "deploy": {
                    "startCommand": "python main.py",
                    "healthcheckPath": "",
                    "preDeployCommand": [
                      "pip install --upgrade pip && pip install -r requirements.txt"
                    ],
                    "restartPolicyType": "ON_FAILURE"
                  },
                  "source": {
                    "repo": "SE7O-SNA/SE7O-SNA-panel",
                    "branch": null,
                    "rootDirectory": "/"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Listening port. Most platforms inject their own value.",
                      "defaultValue": "8080"
                    },
                    "DOMAIN": {
                      "description": "The public service or customer domain, of the form `example.up.railway.app`",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DB_PATH": {
                      "isOptional": false,
                      "description": "SQLite file location. Mount a persistent volume at /data to keep data across restarts.",
                      "defaultValue": "/data/panel.db"
                    },
                    "WORKERS": {
                      "isOptional": true,
                      "description": "Number of worker processes. Higher value = better performance with many concurrent users.",
                      "defaultValue": "4"
                    },
                    "SECRET_KEY": {
                      "description": "Signs JWT session cookies. If unset, a new key is generated on every restart and all sessions are invalidated.",
                      "defaultValue": "{{SECRET_KEY}}"
                    },
                    "MTPROXY_PORT": {
                      "isOptional": true,
                      "description": "Port mtg binds to inside the container. This is the value you enter when creating the TCP proxy.",
                      "defaultValue": "${{RAILWAY_TCP_APPLICATION_PORT}}"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Panel login password. Minimum 8 characters with upper case, lower case, and a digit.",
                      "defaultValue": "StrongPass!123"
                    },
                    "ADMIN_USERNAME": {
                      "isOptional": false,
                      "description": "Panel login username. Defaults to admin.",
                      "defaultValue": "admin"
                    },
                    "MTPROXY_ENABLED": {
                      "isOptional": true,
                      "description": "Set to false to run the panel without the Telegram proxy.",
                      "defaultValue": "true"
                    },
                    "MTPROXY_PUBLIC_HOST": {
                      "isOptional": true,
                      "description": "The public TCP proxy domain for the service, if applicable. Example: `roundhouse.proxy.rlwy.net`",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_DOMAIN}}"
                    },
                    "MTPROXY_PUBLIC_PORT": {
                      "isOptional": true,
                      "description": "The external port for the TCP Proxy.",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_PORT}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "443": {}
                    },
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "2b26d113-eef7-4438-ab5e-0bf734075445": {
                      "mountPath": "/data/"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-06T05:54:15.658Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-05T18:01:40.990Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_cf7b46625b464e5ba703",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Repository \"SE7O-SNA/SE7O-SNA-panel\" not found or is not accessible"
      }
    ]
  }
}
