{
  "manifest_version": "1.0.0",
  "template": {
    "id": "0cb33974-b8b3-483a-909f-f3e8f99dd2d2",
    "slug": "splitpro",
    "name": "SplitPro",
    "description": "Open-source Splitwise alternative: split expenses, receipts, settle up",
    "url": "https://railway.com/deploy/splitpro",
    "upstream": {
      "image": "ghcr.io/youssefsiam38/splitpro-railway:1.0.1"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "splitpro",
      "source": {
        "image": "ghcr.io/youssefsiam38/splitpro-railway:1.0.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/uploads",
      "http": true
    },
    {
      "name": "postgres",
      "source": {
        "image": "ossapps/postgres:17.7-trixie"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "splitpro",
      "description": "Port SplitPro listens on. Leave at 3000 unless you change the public port.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "FROM_EMAIL",
      "service": "splitpro",
      "description": "Sender address for sign-in and invitation emails (e.g. splitpro@yourdomain.com). Must be a sender your SMTP provider allows.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DATABASE_URL",
      "service": "splitpro",
      "description": "Connection string to the postgres service over Railway private networking. Set automatically from the postgres service; do not change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "NEXTAUTH_URL",
      "service": "splitpro",
      "description": "Public origin of your deployment. Set automatically from the Railway domain; change only when you attach a custom domain (e.g. https://split.example.com).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DB_WAIT_TIMEOUT",
      "service": "splitpro",
      "description": "Seconds the wrapper waits for PostgreSQL to accept connections before exiting so Railway restarts the service.",
      "secret": false,
      "strategy": "default",
      "default": "180"
    },
    {
      "key": "NEXTAUTH_SECRET",
      "service": "splitpro",
      "description": "Signs sessions and sign-in tokens. Generated per deployment (64 hex characters).",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DEFAULT_HOMEPAGE",
      "service": "splitpro",
      "description": "Route that / redirects to. /balances opens the app; upstream's default /home is a marketing page.",
      "secret": false,
      "strategy": "default",
      "default": "/balances"
    },
    {
      "key": "APP_READY_TIMEOUT",
      "service": "splitpro",
      "description": "Seconds the wrapper waits for SplitPro to answer 200 on /api/auth/providers before exiting so Railway restarts the service.",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "EMAIL_SERVER_HOST",
      "service": "splitpro",
      "description": "SMTP host of your email provider (e.g. smtp.resend.com). Required: SplitPro has no password login and signs users in by email.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "EMAIL_SERVER_PORT",
      "service": "splitpro",
      "description": "SMTP port. 587 (STARTTLS) works for most providers; 465 for implicit TLS.",
      "secret": false,
      "strategy": "default",
      "default": "587"
    },
    {
      "key": "EMAIL_SERVER_USER",
      "service": "splitpro",
      "description": "SMTP username.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DISABLE_EMAIL_SIGNUP",
      "service": "splitpro",
      "description": "Set to true once your friends have signed up, so strangers who find your URL cannot create accounts. Existing accounts keep signing in.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "EMAIL_SERVER_PASSWORD",
      "service": "splitpro",
      "description": "SMTP password or API key.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "CURRENCY_RATE_PROVIDER",
      "service": "splitpro",
      "description": "Exchange-rate source: frankfurter (no key needed), openexchangerates (add OPEN_EXCHANGE_RATES_APP_ID), or nbp.",
      "secret": false,
      "strategy": "default",
      "default": "frankfurter"
    },
    {
      "key": "ENABLE_SENDING_INVITES",
      "service": "splitpro",
      "description": "Let users email invitations to friends who are not on this instance yet.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "UPLOAD_MAX_FILE_SIZE_MB",
      "service": "splitpro",
      "description": "Maximum receipt upload size in MB.",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "EMAIL_TLS_REJECT_UNAUTHORIZED",
      "service": "splitpro",
      "description": "Keep 1 to verify the SMTP server's TLS certificate. Set 0 only for relays with self-signed certificates.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "PGDATA",
      "service": "postgres",
      "description": "Data directory inside the volume (a subdirectory so PostgreSQL tolerates the volume's lost+found).",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Database name. Keep 'splitpro': the start command sets cron.database_name=splitpro for pg_cron.",
      "secret": false,
      "strategy": "default",
      "default": "splitpro"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "Database role used by SplitPro (superuser inside this container, as in the official PostgreSQL image).",
      "secret": false,
      "strategy": "default",
      "default": "splitpro"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Generated per deployment. Referenced by the splitpro service's DATABASE_URL; never needs to be typed.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "splitpro"
      }
    },
    "cli": "railway deploy --template splitpro",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "0cb33974-b8b3-483a-909f-f3e8f99dd2d2",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "2273005a-4e99-4694-b4f4-22de965c81ad": {
                  "icon": null,
                  "name": "splitpro",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/auth/providers",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/youssefsiam38/splitpro-railway:1.0.1"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port SplitPro listens on. Leave at 3000 unless you change the public port.",
                      "defaultValue": "3000"
                    },
                    "FROM_EMAIL": {
                      "isOptional": false,
                      "description": "Sender address for sign-in and invitation emails (e.g. splitpro@yourdomain.com). Must be a sender your SMTP provider allows.",
                      "defaultValue": "{{FROM_EMAIL}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": true,
                      "description": "Connection string to the postgres service over Railway private networking. Set automatically from the postgres service; do not change.",
                      "defaultValue": "postgresql://${{postgres.POSTGRES_USER}}:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{postgres.POSTGRES_DB}}"
                    },
                    "NEXTAUTH_URL": {
                      "isOptional": true,
                      "description": "Public origin of your deployment. Set automatically from the Railway domain; change only when you attach a custom domain (e.g. https://split.example.com).",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DB_WAIT_TIMEOUT": {
                      "isOptional": true,
                      "description": "Seconds the wrapper waits for PostgreSQL to accept connections before exiting so Railway restarts the service.",
                      "defaultValue": "180"
                    },
                    "NEXTAUTH_SECRET": {
                      "isOptional": true,
                      "description": "Signs sessions and sign-in tokens. Generated per deployment (64 hex characters).",
                      "defaultValue": "{{NEXTAUTH_SECRET}}"
                    },
                    "DEFAULT_HOMEPAGE": {
                      "isOptional": true,
                      "description": "Route that / redirects to. /balances opens the app; upstream's default /home is a marketing page.",
                      "defaultValue": "/balances"
                    },
                    "APP_READY_TIMEOUT": {
                      "isOptional": true,
                      "description": "Seconds the wrapper waits for SplitPro to answer 200 on /api/auth/providers before exiting so Railway restarts the service.",
                      "defaultValue": "300"
                    },
                    "EMAIL_SERVER_HOST": {
                      "isOptional": false,
                      "description": "SMTP host of your email provider (e.g. smtp.resend.com). Required: SplitPro has no password login and signs users in by email.",
                      "defaultValue": "{{EMAIL_SERVER_HOST}}"
                    },
                    "EMAIL_SERVER_PORT": {
                      "isOptional": false,
                      "description": "SMTP port. 587 (STARTTLS) works for most providers; 465 for implicit TLS.",
                      "defaultValue": "587"
                    },
                    "EMAIL_SERVER_USER": {
                      "isOptional": false,
                      "description": "SMTP username.",
                      "defaultValue": "{{EMAIL_SERVER_USER}}"
                    },
                    "DISABLE_EMAIL_SIGNUP": {
                      "isOptional": true,
                      "description": "Set to true once your friends have signed up, so strangers who find your URL cannot create accounts. Existing accounts keep signing in.",
                      "defaultValue": "false"
                    },
                    "EMAIL_SERVER_PASSWORD": {
                      "isOptional": false,
                      "description": "SMTP password or API key.",
                      "defaultValue": "{{EMAIL_SERVER_PASSWORD}}"
                    },
                    "CURRENCY_RATE_PROVIDER": {
                      "isOptional": true,
                      "description": "Exchange-rate source: frankfurter (no key needed), openexchangerates (add OPEN_EXCHANGE_RATES_APP_ID), or nbp.",
                      "defaultValue": "frankfurter"
                    },
                    "ENABLE_SENDING_INVITES": {
                      "isOptional": true,
                      "description": "Let users email invitations to friends who are not on this instance yet.",
                      "defaultValue": "true"
                    },
                    "UPLOAD_MAX_FILE_SIZE_MB": {
                      "isOptional": true,
                      "description": "Maximum receipt upload size in MB.",
                      "defaultValue": "10"
                    },
                    "EMAIL_TLS_REJECT_UNAUTHORIZED": {
                      "isOptional": true,
                      "description": "Keep 1 to verify the SMTP server's TLS certificate. Set 0 only for relays with self-signed certificates.",
                      "defaultValue": "1"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "2273005a-4e99-4694-b4f4-22de965c81ad": {
                      "mountPath": "/app/uploads"
                    }
                  }
                },
                "6b60e7ee-0280-4056-9e89-ccacb0a43069": {
                  "icon": null,
                  "name": "postgres",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh postgres -c shared_preload_libraries=pg_cron -c cron.database_name=splitpro -c cron.timezone=UTC",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ossapps/postgres:17.7-trixie"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": true,
                      "description": "Data directory inside the volume (a subdirectory so PostgreSQL tolerates the volume's lost+found).",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": true,
                      "description": "Database name. Keep 'splitpro': the start command sets cron.database_name=splitpro for pg_cron.",
                      "defaultValue": "splitpro"
                    },
                    "POSTGRES_USER": {
                      "isOptional": true,
                      "description": "Database role used by SplitPro (superuser inside this container, as in the official PostgreSQL image).",
                      "defaultValue": "splitpro"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": true,
                      "description": "Generated per deployment. Referenced by the splitpro service's DATABASE_URL; never needs to be typed.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "6b60e7ee-0280-4056-9e89-ccacb0a43069": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "splitpro",
      "method": "GET",
      "path": "/api/auth/providers",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-11T16:14:44.435Z",
  "generator_version": "0.1.0"
}
