{
  "manifest_version": "1.0.0",
  "template": {
    "id": "33350e27-8a8a-47c2-b2a9-675a765ccbbe",
    "slug": "kaneo-jira-alternative",
    "name": "Kaneo | Open Source Jira Alternative",
    "description": "Self-hosted Kaneo with Postgres, object storage and a pinned version",
    "url": "https://railway.com/deploy/kaneo-jira-alternative",
    "upstream": {
      "image": "ghcr.io/usekaneo/kaneo:2.23.2"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "postgres:18.6-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Kaneo",
      "source": {
        "image": "ghcr.io/usekaneo/kaneo:2.23.2"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Postgres data directory, deliberately one level below the volume mount point: the image refuses to initialise into a directory that already contains anything, and a fresh Railway volume always contains lost+found.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Name of the database Kaneo uses.",
      "secret": false,
      "strategy": "default",
      "default": "kaneo"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Postgres role Kaneo connects as.",
      "secret": false,
      "strategy": "default",
      "default": "kaneo"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Generated once at deploy. Alphanumeric on purpose — DATABASE_URL embeds it in a connection string, where a generated / or @ would break parsing.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "Kaneo",
      "description": "Port Railway routes traffic and healthchecks to. nginx inside the image has `listen 5173` hard-coded and never reads $PORT, so this must stay 5173.",
      "secret": false,
      "strategy": "default",
      "default": "5173"
    },
    {
      "key": "S3_BUCKET",
      "service": "Kaneo",
      "description": "Bucket holding images pasted into task descriptions and comments.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "Kaneo",
      "description": "Region used to sign storage requests.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AUTH_SECRET",
      "service": "Kaneo",
      "description": "Signs session cookies. Generated once and then fixed — leave it empty and Kaneo's entrypoint mints a new random secret on every start, which logs every user out on every redeploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "Kaneo",
      "description": "Railway object storage endpoint for the attached bucket.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "Kaneo",
      "description": "Connection to the bundled Postgres over Railway's private network. Kaneo's client does not require TLS here.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TRUSTED_PROXIES",
      "service": "Kaneo",
      "description": "Kaneo's default trust list does not cover Railway's edge (100.64.0.0/10), so it stops walking X-Forwarded-For at the edge and records that as every visitor's address — collapsing per-IP sign-in rate limiting into one bucket. This adds the range so the real client IP is used.",
      "secret": false,
      "strategy": "default",
      "default": "100.64.0.0/10, 127.0.0.0/8, ::1/128, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16"
    },
    {
      "key": "KANEO_CLIENT_URL",
      "service": "Kaneo",
      "description": "Public URL of this instance. Kaneo derives its API URL as this value plus /api; change it if you put Kaneo on a custom domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "S3_ACCESS_KEY_ID",
      "service": "Kaneo",
      "description": "Access key for the attached bucket.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NGINX_HEADER_PATCH",
      "service": "Kaneo",
      "description": "Applied to the bundled nginx config at start-up. Railway rewrites X-Forwarded-For but passes CF-Connecting-IP through untouched, and Kaneo reads that header first — so without this a caller can dictate the IP recorded on their session and rotate it to sidestep sign-in rate limiting. Empty this variable to disable the patch.",
      "secret": false,
      "strategy": "default",
      "default": "s|proxy_set_header Host $host;|proxy_set_header Host $host;\\n        proxy_set_header CF-Connecting-IP \"\";|g"
    },
    {
      "key": "S3_FORCE_PATH_STYLE",
      "service": "Kaneo",
      "description": "Must stay true. The browser uploads straight to the bucket with a presigned URL, and Railway object storage only returns CORS headers on the path-style endpoint.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DISABLE_GUEST_ACCESS",
      "service": "Kaneo",
      "description": "Blocks anonymous guest sign-in, which Kaneo enables by default. Set to false only if you want a public demo where any visitor gets a throwaway account.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DISABLE_REGISTRATION",
      "service": "Kaneo",
      "description": "Leave false to create your first account, then set it to true so the instance stops accepting public sign-ups. Existing workspace invitations keep working either way.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "S3_SECRET_ACCESS_KEY",
      "service": "Kaneo",
      "description": "Secret key for the attached bucket.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "kaneo-jira-alternative"
      }
    },
    "cli": "railway deploy --template kaneo-jira-alternative",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "33350e27-8a8a-47c2-b2a9-675a765ccbbe",
            "serializedConfig": {
              "buckets": {
                "989cf0cf-27ac-4e05-b4ad-0ea9e1213962": {
                  "name": "Uploads"
                }
              },
              "services": {
                "7e7b211e-0afb-4b11-8c02-5f06857c98a9": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 2
                  },
                  "source": {
                    "image": "postgres:18.6-alpine"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Postgres data directory, deliberately one level below the volume mount point: the image refuses to initialise into a directory that already contains anything, and a fresh Railway volume always contains lost+found.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Name of the database Kaneo uses.",
                      "defaultValue": "kaneo"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Postgres role Kaneo connects as.",
                      "defaultValue": "kaneo"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated once at deploy. Alphanumeric on purpose — DATABASE_URL embeds it in a connection string, where a generated / or @ would break parsing.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "7e7b211e-0afb-4b11-8c02-5f06857c98a9": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "cfbf7b0c-68f5-4c85-85e6-bbd00de79db3": {
                  "icon": "https://cdn.jsdelivr.net/gh/usekaneo/kaneo@v2.22.0/apps/site/public/logo-512.png",
                  "name": "Kaneo",
                  "deploy": {
                    "startCommand": "sh -c 'sed -i \"$NGINX_HEADER_PATCH\" /etc/nginx/conf.d/default.conf && exec /usr/local/bin/kaneo-entrypoint.sh'",
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 3
                  },
                  "source": {
                    "image": "ghcr.io/usekaneo/kaneo:2.23.2"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway routes traffic and healthchecks to. nginx inside the image has `listen 5173` hard-coded and never reads $PORT, so this must stay 5173.",
                      "defaultValue": "5173"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket holding images pasted into task descriptions and comments.",
                      "defaultValue": "${{Uploads.BUCKET}}"
                    },
                    "S3_REGION": {
                      "isOptional": false,
                      "description": "Region used to sign storage requests.",
                      "defaultValue": "${{Uploads.REGION}}"
                    },
                    "AUTH_SECRET": {
                      "isOptional": false,
                      "description": "Signs session cookies. Generated once and then fixed — leave it empty and Kaneo's entrypoint mints a new random secret on every start, which logs every user out on every redeploy.",
                      "defaultValue": "{{AUTH_SECRET}}"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Railway object storage endpoint for the attached bucket.",
                      "defaultValue": "${{Uploads.ENDPOINT}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Connection to the bundled Postgres over Railway's private network. Kaneo's client does not require TLS here.",
                      "defaultValue": "postgresql://kaneo:${{Postgres.POSTGRES_PASSWORD}}@${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/kaneo"
                    },
                    "TRUSTED_PROXIES": {
                      "isOptional": false,
                      "description": "Kaneo's default trust list does not cover Railway's edge (100.64.0.0/10), so it stops walking X-Forwarded-For at the edge and records that as every visitor's address — collapsing per-IP sign-in rate limiting into one bucket. This adds the range so the real client IP is used.",
                      "defaultValue": "100.64.0.0/10, 127.0.0.0/8, ::1/128, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16"
                    },
                    "KANEO_CLIENT_URL": {
                      "isOptional": false,
                      "description": "Public URL of this instance. Kaneo derives its API URL as this value plus /api; change it if you put Kaneo on a custom domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Access key for the attached bucket.",
                      "defaultValue": "${{Uploads.ACCESS_KEY_ID}}"
                    },
                    "NGINX_HEADER_PATCH": {
                      "isOptional": false,
                      "description": "Applied to the bundled nginx config at start-up. Railway rewrites X-Forwarded-For but passes CF-Connecting-IP through untouched, and Kaneo reads that header first — so without this a caller can dictate the IP recorded on their session and rotate it to sidestep sign-in rate limiting. Empty this variable to disable the patch.",
                      "defaultValue": "s|proxy_set_header Host $host;|proxy_set_header Host $host;\\n        proxy_set_header CF-Connecting-IP \"\";|g"
                    },
                    "S3_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Must stay true. The browser uploads straight to the bucket with a presigned URL, and Railway object storage only returns CORS headers on the path-style endpoint.",
                      "defaultValue": "true"
                    },
                    "DISABLE_GUEST_ACCESS": {
                      "isOptional": false,
                      "description": "Blocks anonymous guest sign-in, which Kaneo enables by default. Set to false only if you want a public demo where any visitor gets a throwaway account.",
                      "defaultValue": "true"
                    },
                    "DISABLE_REGISTRATION": {
                      "isOptional": false,
                      "description": "Leave false to create your first account, then set it to true so the instance stops accepting public sign-ups. Existing workspace invitations keep working either way.",
                      "defaultValue": "false"
                    },
                    "S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Secret key for the attached bucket.",
                      "defaultValue": "${{Uploads.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:5173": {
                        "port": 5173
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Kaneo",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-17T22:14:38.342Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-17T03:39:36.817Z",
  "success_rate_30d": 0.2,
  "validation": {
    "last_run_id": "run_e87edb922b1044eaa3e1",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ],
    "typical_ready_seconds": 72
  }
}
