{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d74ee75e-4f60-49c5-b2a2-dce6287229f4",
    "slug": "side-app-tasks",
    "name": "Side App Tasks",
    "description": "Deploy and Host Side App Tasks with Railway",
    "url": "https://railway.com/deploy/side-app-tasks",
    "upstream": {
      "repo_url": "https://github.com/nierdna/sa-task-frontend"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Frontend",
      "source": {
        "repo": "https://github.com/nierdna/sa-task-frontend"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    },
    {
      "name": "TelegramBotVerifier",
      "source": {
        "repo": "https://github.com/nierdna/sa-task-telegram-bot-server"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "ApiServer",
      "source": {
        "repo": "https://github.com/nierdna/sa-task-api-server"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "NEXT_PUBLIC_API_URL",
      "service": "Frontend",
      "description": "Provide a value for NEXT_PUBLIC_API_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NEXT_PUBLIC_SOLANA_NETWORK",
      "service": "Frontend",
      "description": "Provide a value for NEXT_PUBLIC_SOLANA_NETWORK.",
      "secret": false,
      "strategy": "default",
      "default": "mainnet"
    },
    {
      "key": "NEXT_PUBLIC_SOLANA_RPC_URL",
      "service": "Frontend",
      "description": "Provide a value for NEXT_PUBLIC_SOLANA_RPC_URL.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "NEXT_PUBLIC_TELEGRAM_BOT_USERNAME",
      "service": "Frontend",
      "description": "Provide a value for NEXT_PUBLIC_TELEGRAM_BOT_USERNAME.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to Postgres DB",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public URL to connect to Postgres database, used by the Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "NODE_ENV",
      "service": "TelegramBotVerifier",
      "description": "Provide a value for NODE_ENV.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "DATABASE_URL",
      "service": "TelegramBotVerifier",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TELEGRAM_BOT_TOKEN",
      "service": "TelegramBotVerifier",
      "description": "Provide a value for TELEGRAM_BOT_TOKEN.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TELEGRAM_BOT_USERNAME",
      "service": "TelegramBotVerifier",
      "description": "Provide a value for TELEGRAM_BOT_USERNAME.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DB_SYNC",
      "service": "ApiServer",
      "description": "Provide a value for DB_SYNC.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "CLIENT_URL",
      "service": "ApiServer",
      "description": "Provide a value for CLIENT_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "JWT_SECRET",
      "service": "ApiServer",
      "description": "Provide a value for JWT_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CORS_ORIGIN",
      "service": "ApiServer",
      "description": "Provide a value for CORS_ORIGIN.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "ApiServer",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAPID_API_KEY",
      "service": "ApiServer",
      "description": "Provide a value for RAPID_API_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "ApiServer",
      "description": "Provide a value for ENCRYPTION_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAPID_API_HOST",
      "service": "ApiServer",
      "description": "Provide a value for RAPID_API_HOST.",
      "secret": false,
      "strategy": "default",
      "default": "twitter-api45.p.rapidapi.com"
    },
    {
      "key": "MAIN_APP_API_KEY",
      "service": "ApiServer",
      "description": "Provide a value for MAIN_APP_API_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TWITTER_CLIENT_ID",
      "service": "ApiServer",
      "description": "Provide a value for TWITTER_CLIENT_ID.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "RAPID_API_BASE_URL",
      "service": "ApiServer",
      "description": "Provide a value for RAPID_API_BASE_URL.",
      "secret": false,
      "strategy": "default",
      "default": "https://twitter-api45.p.rapidapi.com"
    },
    {
      "key": "TELEGRAM_BOT_TOKEN",
      "service": "ApiServer",
      "description": "Provide a value for TELEGRAM_BOT_TOKEN.",
      "secret": true,
      "strategy": "default",
      "default": "8"
    },
    {
      "key": "MAIN_APP_WEBHOOK_URL",
      "service": "ApiServer",
      "description": "Provide a value for MAIN_APP_WEBHOOK_URL.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "TWITTER_CALLBACK_URL",
      "service": "ApiServer",
      "description": "Provide a value for TWITTER_CALLBACK_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAPID_CRAWL_TWEET_KEY",
      "service": "ApiServer",
      "description": "Provide a value for RAPID_CRAWL_TWEET_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TWITTER_CLIENT_SECRET",
      "service": "ApiServer",
      "description": "Provide a value for TWITTER_CLIENT_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ADMIN_WALLET_ADDRESSES",
      "service": "ApiServer",
      "description": "Provide a value for ADMIN_WALLET_ADDRESSES.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "RAPID_CRAWL_TWEET_HOST",
      "service": "ApiServer",
      "description": "Provide a value for RAPID_CRAWL_TWEET_HOST.",
      "secret": false,
      "strategy": "default",
      "default": "twttrapi.p.rapidapi.com"
    },
    {
      "key": "ENABLE_MOCK_VERIFICATION",
      "service": "ApiServer",
      "description": "Provide a value for ENABLE_MOCK_VERIFICATION.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "RAPID_CRAWL_TWEET_V2_KEY",
      "service": "ApiServer",
      "description": "Provide a value for RAPID_CRAWL_TWEET_V2_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAPID_CRAWL_TWEET_V2_HOST",
      "service": "ApiServer",
      "description": "Provide a value for RAPID_CRAWL_TWEET_V2_HOST.",
      "secret": false,
      "strategy": "default",
      "default": "twitter241.p.rapidapi.com"
    },
    {
      "key": "RAPID_CRAWL_TWEET_BASE_URL",
      "service": "ApiServer",
      "description": "Provide a value for RAPID_CRAWL_TWEET_BASE_URL.",
      "secret": false,
      "strategy": "default",
      "default": "https://twttrapi.p.rapidapi.com"
    },
    {
      "key": "USE_TELEGRAM_DB_VERIFICATION",
      "service": "ApiServer",
      "description": "Provide a value for USE_TELEGRAM_DB_VERIFICATION.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "side-app-tasks"
      }
    },
    "cli": "railway deploy --template side-app-tasks",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d74ee75e-4f60-49c5-b2a2-dce6287229f4",
            "serializedConfig": {
              "services": {
                "0029c629-e661-474f-b844-6fe0460ec7ad": {
                  "name": "Frontend",
                  "source": {
                    "repo": "nierdna/sa-task-frontend",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "NEXT_PUBLIC_API_URL": {
                      "defaultValue": "https://${{ApiServer.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NEXT_PUBLIC_SOLANA_NETWORK": {
                      "defaultValue": "mainnet"
                    },
                    "NEXT_PUBLIC_SOLANA_RPC_URL": {
                      "defaultValue": "{{NEXT_PUBLIC_SOLANA_RPC_URL}}"
                    },
                    "NEXT_PUBLIC_TELEGRAM_BOT_USERNAME": {
                      "defaultValue": "{{NEXT_PUBLIC_TELEGRAM_BOT_USERNAME}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "4077017a-8159-475c-88d2-3f4b2386245e": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "requiredMountPath": "/var/lib/postgresql/data"
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created when image is started.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Postgres database.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "description": "Public URL to connect to Postgres database, used by the Data panel.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "4077017a-8159-475c-88d2-3f4b2386245e": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                },
                "b27335e0-bc88-486f-96aa-319344dcd5e4": {
                  "name": "TelegramBotVerifier",
                  "source": {
                    "repo": "nierdna/sa-task-telegram-bot-server",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "NODE_ENV": {
                      "defaultValue": "production"
                    },
                    "DATABASE_URL": {
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "TELEGRAM_BOT_TOKEN": {
                      "defaultValue": "{{TELEGRAM_BOT_TOKEN}}"
                    },
                    "TELEGRAM_BOT_USERNAME": {
                      "defaultValue": "{{TELEGRAM_BOT_USERNAME}}"
                    }
                  }
                },
                "f5563745-fc6f-4b40-a3e7-b69ce8c9049a": {
                  "name": "ApiServer",
                  "source": {
                    "repo": "nierdna/sa-task-api-server",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "DB_SYNC": {
                      "defaultValue": "true"
                    },
                    "CLIENT_URL": {
                      "defaultValue": "https://${{Frontend.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "JWT_SECRET": {
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "CORS_ORIGIN": {
                      "defaultValue": "https://${{Frontend.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DATABASE_URL": {
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "RAPID_API_KEY": {
                      "defaultValue": "{{RAPID_API_KEY}}"
                    },
                    "ENCRYPTION_KEY": {
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    },
                    "RAPID_API_HOST": {
                      "defaultValue": "twitter-api45.p.rapidapi.com"
                    },
                    "MAIN_APP_API_KEY": {
                      "defaultValue": "{{MAIN_APP_API_KEY}}"
                    },
                    "TWITTER_CLIENT_ID": {
                      "defaultValue": "{{TWITTER_CLIENT_ID}}"
                    },
                    "RAPID_API_BASE_URL": {
                      "defaultValue": "https://twitter-api45.p.rapidapi.com"
                    },
                    "TELEGRAM_BOT_TOKEN": {
                      "defaultValue": "8"
                    },
                    "MAIN_APP_WEBHOOK_URL": {
                      "defaultValue": "{{MAIN_APP_WEBHOOK_URL}}"
                    },
                    "TWITTER_CALLBACK_URL": {
                      "defaultValue": "https://${{ApiServer.RAILWAY_PUBLIC_DOMAIN}}/api/auth/twitter/callback"
                    },
                    "RAPID_CRAWL_TWEET_KEY": {
                      "defaultValue": "{{RAPID_CRAWL_TWEET_KEY}}"
                    },
                    "TWITTER_CLIENT_SECRET": {
                      "defaultValue": "{{TWITTER_CLIENT_SECRET}}"
                    },
                    "ADMIN_WALLET_ADDRESSES": {
                      "defaultValue": "{{ADMIN_WALLET_ADDRESSES}}"
                    },
                    "RAPID_CRAWL_TWEET_HOST": {
                      "defaultValue": "twttrapi.p.rapidapi.com"
                    },
                    "ENABLE_MOCK_VERIFICATION": {
                      "defaultValue": "false"
                    },
                    "RAPID_CRAWL_TWEET_V2_KEY": {
                      "defaultValue": "{{RAPID_CRAWL_TWEET_V2_KEY}}"
                    },
                    "RAPID_CRAWL_TWEET_V2_HOST": {
                      "defaultValue": "twitter241.p.rapidapi.com"
                    },
                    "RAPID_CRAWL_TWEET_BASE_URL": {
                      "defaultValue": "https://twttrapi.p.rapidapi.com"
                    },
                    "USE_TELEGRAM_DB_VERIFICATION": {
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T04:14:46.774Z",
  "generator_version": "0.1.0"
}
