{
  "manifest_version": "1.0.0",
  "template": {
    "id": "3b404438-7410-41cd-8c1d-5889cde383bd",
    "slug": "inngest-with-protected-dashboard",
    "name": "Inngest (with protected dashboard)",
    "description": "Inngest self-hosted with nginx proxy to password-protect the dashboard",
    "url": "https://railway.com/deploy/inngest-with-protected-dashboard",
    "upstream": {
      "repo_url": "https://github.com/shaezzy/inngest-nginx-basic-auth"
    }
  },
  "services": [
    {
      "name": "InngestPostgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    },
    {
      "name": "InngestRedis",
      "source": {
        "image": "redis:8.2.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "tcp_ports": [
        6379
      ],
      "http": false
    },
    {
      "name": "inngest",
      "source": {
        "image": "inngest/inngest"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "inngest-nginx-basic-auth",
      "source": {
        "repo": "https://github.com/shaezzy/inngest-nginx-basic-auth"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "InngestPostgres",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "InngestPostgres",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "InngestPostgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "InngestPostgres",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "InngestPostgres",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "InngestPostgres",
      "description": "Required variable for Data panel",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "InngestPostgres",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "InngestPostgres",
      "description": "URL to connect to Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "InngestPostgres",
      "description": "User to connect to Postgres DB",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "InngestPostgres",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "InngestPostgres",
      "description": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "InngestPostgres",
      "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": "InngestPostgres",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "REDISHOST",
      "service": "InngestRedis",
      "description": "Provide a value for REDISHOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "InngestRedis",
      "description": "Provide a value for REDISPORT.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "InngestRedis",
      "description": "Provide a value for REDISUSER.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "InngestRedis",
      "description": "Connection string for connecting to redis using the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "InngestRedis",
      "description": "Provide a value for REDISPASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "InngestRedis",
      "description": "Provide a value for REDIS_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "InngestRedis",
      "description": "Connection string for connecting to redis externally",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "INNGEST_DEV",
      "service": "inngest",
      "description": "Set to 1 to run Inngest in development mode. In dev mode the signing key and event key are not required, and all functions are visible in the local dashboard",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "INNGEST_PORT",
      "service": "inngest",
      "description": "The port the Inngest server listens on. Defaults to 8288.",
      "secret": false,
      "strategy": "default",
      "default": "8288"
    },
    {
      "key": "INNGEST_EVENT_KEY",
      "service": "inngest",
      "description": "Secret key used to authenticate inbound events sent to /e/{key}. Any app that sends events to your Inngest instance must include this key in the URL.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "INNGEST_REDIS_URI",
      "service": "inngest",
      "description": "Redis connection string used for the queue and run state. Required for production deployments.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "INNGEST_SIGNING_KEY",
      "service": "inngest",
      "description": "Secret key used to sign and verify requests between Inngest and your functions. Inngest uses this to prove that a function invocation came from your server, and your SDK uses it to verify the request before executing.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "INNGEST_POSTGRES_URI",
      "service": "inngest",
      "description": "PostgreSQL connection string used to store function run history and event data",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "inngest-nginx-basic-auth",
      "description": "The port nginx listens on. Railway uses this to route public traffic to the proxy",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "PROXY_PASS",
      "service": "inngest-nginx-basic-auth",
      "description": "Provide a value for PROXY_PASS.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DASHBOARD_PASSWORD",
      "service": "inngest-nginx-basic-auth",
      "description": "Password for the Inngest dashboard login prompt.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DASHBOARD_USERNAME",
      "service": "inngest-nginx-basic-auth",
      "description": "Username for the Inngest dashboard login prompt.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ENABLE_ALPINE_PRIVATE_NETWORKING",
      "service": "inngest-nginx-basic-auth",
      "description": "Required for Alpine-based Docker images to resolve Railway's internal private network hostnames. Set to true.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "inngest-with-protected-dashboard"
      }
    },
    "cli": "railway deploy --template inngest-with-protected-dashboard",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "3b404438-7410-41cd-8c1d-5889cde383bd",
            "serializedConfig": {
              "services": {
                "0cf786c7-bfb9-4487-bcf1-f0879c1c0b1e": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "InngestPostgres",
                  "build": {},
                  "deploy": {
                    "requiredMountPath": "/var/lib/postgresql/data"
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "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": {
                    "0cf786c7-bfb9-4487-bcf1-f0879c1c0b1e": {
                      "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."
                  }
                },
                "9dab2bac-0ec7-4b64-9bac-e012d81cf905": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "InngestRedis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\""
                  },
                  "source": {
                    "image": "redis:8.2.1"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Connection string for connecting to redis using the private network",
                      "defaultValue": "redis://${{ REDISUSER }}:${{ REDIS_PASSWORD }}@${{ REDISHOST }}:${{ REDISPORT }}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "REDIS_PUBLIC_URL": {
                      "description": "Connection string for connecting to redis externally",
                      "defaultValue": "redis://default:${{ REDIS_PASSWORD }}@${{ RAILWAY_TCP_PROXY_DOMAIN }}:${{ RAILWAY_TCP_PROXY_PORT }}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "6379": {}
                    }
                  },
                  "volumeMounts": {
                    "9dab2bac-0ec7-4b64-9bac-e012d81cf905": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxies",
                      "options": [
                        1,
                        2
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "HAProxy instances routing writes to the primary",
                      "defaultValue": 2
                    },
                    "replica": {
                      "label": "Redis Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "Redis",
                      "description": "Nodes running Redis + colocated Sentinel",
                      "defaultValue": 2
                    },
                    "internal": null,
                    "description": "This will convert your Redis instance to an HA cluster with Sentinel failover and HAProxy routing to the primary."
                  }
                },
                "e9244e1f-3fbc-44e1-8166-a829e3e25db6": {
                  "icon": "https://avatars.githubusercontent.com/u/78935958?s=200&v=4",
                  "name": "inngest",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"inngest start --port $INNGEST_PORT --event-key $INNGEST_EVENT_KEY --signing-key $INNGEST_SIGNING_KEY --postgres-uri $INNGEST_POSTGRES_URI --redis-uri $INNGEST_REDIS_URI ${INNGEST_SERVE_ORIGIN:+-u $INNGEST_SERVE_ORIGIN}\"",
                    "healthcheckPath": ""
                  },
                  "source": {
                    "image": "inngest/inngest"
                  },
                  "variables": {
                    "INNGEST_DEV": {
                      "isOptional": false,
                      "description": "Set to 1 to run Inngest in development mode. In dev mode the signing key and event key are not required, and all functions are visible in the local dashboard",
                      "defaultValue": "0"
                    },
                    "INNGEST_PORT": {
                      "isOptional": false,
                      "description": "The port the Inngest server listens on. Defaults to 8288.",
                      "defaultValue": "8288"
                    },
                    "INNGEST_EVENT_KEY": {
                      "isOptional": false,
                      "description": "Secret key used to authenticate inbound events sent to /e/{key}. Any app that sends events to your Inngest instance must include this key in the URL.",
                      "defaultValue": "{{INNGEST_EVENT_KEY}}"
                    },
                    "INNGEST_REDIS_URI": {
                      "isOptional": false,
                      "description": "Redis connection string used for the queue and run state. Required for production deployments.",
                      "defaultValue": "${{InngestRedis.REDIS_URL}}"
                    },
                    "INNGEST_SIGNING_KEY": {
                      "isOptional": false,
                      "description": "Secret key used to sign and verify requests between Inngest and your functions. Inngest uses this to prove that a function invocation came from your server, and your SDK uses it to verify the request before executing.",
                      "defaultValue": "{{INNGEST_SIGNING_KEY}}"
                    },
                    "INNGEST_POSTGRES_URI": {
                      "isOptional": false,
                      "description": "PostgreSQL connection string used to store function run history and event data",
                      "defaultValue": "${{InngestPostgres.DATABASE_URL}}"
                    },
                    "INNGEST_SERVE_ORIGIN": {
                      "isOptional": true,
                      "description": "**`INNGEST_SERVE_ORIGIN`** The base URL of your app's Inngest serve endpoint. Inngest uses this to reach your functions when triggering a run. On Railway this can be the private network URL to keep traffic internal. Example: `http://my-app.railway.internal:3000`",
                      "defaultValue": ""
                    }
                  }
                },
                "f60e1c5a-3d92-46b2-9c93-7cf12fe16f57": {
                  "icon": "https://cdn.iconscout.com/icon/free/png-256/free-nginx-logo-icon-svg-download-png-3030173.png?f=webp",
                  "name": "inngest-nginx-basic-auth",
                  "deploy": {
                    "healthcheckPath": ""
                  },
                  "source": {
                    "repo": "shaezzy/inngest-nginx-basic-auth",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "The port nginx listens on. Railway uses this to route public traffic to the proxy",
                      "defaultValue": "80"
                    },
                    "PROXY_PASS": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "http://${{inngest.RAILWAY_PRIVATE_DOMAIN}}:${{inngest.INNGEST_PORT}}"
                    },
                    "DASHBOARD_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the Inngest dashboard login prompt.",
                      "defaultValue": "{{DASHBOARD_PASSWORD}}"
                    },
                    "DASHBOARD_USERNAME": {
                      "isOptional": false,
                      "description": "Username for the Inngest dashboard login prompt.",
                      "defaultValue": "{{DASHBOARD_USERNAME}}"
                    },
                    "ENABLE_ALPINE_PRIVATE_NETWORKING": {
                      "isOptional": false,
                      "description": "Required for Alpine-based Docker images to resolve Railway's internal private network hostnames. Set to true.",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-20T11:21:09.541Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_6bc60e3cbf5647e58a68",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "DEPLOYING,CRASHED,SUCCESS,SUCCESS"
      }
    ]
  }
}
