{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d7f3aefd-a23a-4e26-82f1-31f703646cb6",
    "slug": "dawarich-timeline",
    "name": "Dawarich",
    "description": "Map your own location history — an open-source Google Timeline",
    "url": "https://railway.com/deploy/dawarich-timeline",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/dawarich-railway"
    }
  },
  "services": [
    {
      "name": "dawarich-sidekiq",
      "source": {
        "repo": "https://github.com/gridalpha/dawarich-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "postgis",
      "source": {
        "image": "postgis/postgis:17-3.5-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "dawarich",
      "source": {
        "repo": "https://github.com/gridalpha/dawarich-railway"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "RAILS_ENV",
      "service": "dawarich-sidekiq",
      "description": "Rails environment",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "REDIS_URL",
      "service": "dawarich-sidekiq",
      "description": "Queue the worker consumes",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TIME_ZONE",
      "service": "dawarich-sidekiq",
      "description": "Timezone for dates and statistics",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "AWS_BUCKET",
      "service": "dawarich-sidekiq",
      "description": "Bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_REGION",
      "service": "dawarich-sidekiq",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SELF_HOSTED",
      "service": "dawarich-sidekiq",
      "description": "Enables the self-hosted feature set",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DATABASE_HOST",
      "service": "dawarich-sidekiq",
      "description": "Private PostGIS hostname",
      "secret": false,
      "strategy": "default",
      "default": "postgis.railway.internal"
    },
    {
      "key": "DATABASE_NAME",
      "service": "dawarich-sidekiq",
      "description": "Application database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_PORT",
      "service": "dawarich-sidekiq",
      "description": "PostGIS port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "STORE_GEODATA",
      "service": "dawarich-sidekiq",
      "description": "Keep raw geocoding responses",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "dawarich-sidekiq",
      "description": "Must match the web service",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_BACKEND",
      "service": "dawarich-sidekiq",
      "description": "Store uploads in object storage",
      "secret": false,
      "strategy": "default",
      "default": "s3"
    },
    {
      "key": "AWS_ENDPOINT_URL",
      "service": "dawarich-sidekiq",
      "description": "S3-compatible endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "dawarich-sidekiq",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_PASSWORD",
      "service": "dawarich-sidekiq",
      "description": "Database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_USERNAME",
      "service": "dawarich-sidekiq",
      "description": "Database role",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILS_LOG_TO_STDOUT",
      "service": "dawarich-sidekiq",
      "description": "Send logs to the deploy log",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "APPLICATION_PROTOCOL",
      "service": "dawarich-sidekiq",
      "description": "Scheme used in generated URLs",
      "secret": false,
      "strategy": "default",
      "default": "https"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "dawarich-sidekiq",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "OTP_ENCRYPTION_PRIMARY_KEY",
      "service": "dawarich-sidekiq",
      "description": "Must match the web service",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "OTP_ENCRYPTION_DETERMINISTIC_KEY",
      "service": "dawarich-sidekiq",
      "description": "Must match the web service",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ALLOW_EMAIL_PASSWORD_REGISTRATION",
      "service": "dawarich-sidekiq",
      "description": "Keep public signup closed",
      "secret": true,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "BACKGROUND_PROCESSING_CONCURRENCY",
      "service": "dawarich-sidekiq",
      "description": "Sidekiq threads",
      "secret": false,
      "strategy": "default",
      "default": "3"
    },
    {
      "key": "OTP_ENCRYPTION_KEY_DERIVATION_SALT",
      "service": "dawarich-sidekiq",
      "description": "Must match the web service",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auth password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PGDATA",
      "service": "postgis",
      "description": "Cluster one level below the mount root",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgis",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "dawarich"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgis",
      "description": "Superuser created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "dawarich"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgis",
      "description": "Superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "dawarich",
      "description": "Puma listening port",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "RAILS_ENV",
      "service": "dawarich",
      "description": "Rails environment",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "REDIS_URL",
      "service": "dawarich",
      "description": "Queue, cache and live updates",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TIME_ZONE",
      "service": "dawarich",
      "description": "Timezone for dates and statistics",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "AWS_BUCKET",
      "service": "dawarich",
      "description": "Bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_REGION",
      "service": "dawarich",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SELF_HOSTED",
      "service": "dawarich",
      "description": "Enables the self-hosted feature set",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DATABASE_HOST",
      "service": "dawarich",
      "description": "Private PostGIS hostname",
      "secret": false,
      "strategy": "default",
      "default": "postgis.railway.internal"
    },
    {
      "key": "DATABASE_NAME",
      "service": "dawarich",
      "description": "Application database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_PORT",
      "service": "dawarich",
      "description": "PostGIS port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "STORE_GEODATA",
      "service": "dawarich",
      "description": "Keep raw geocoding responses",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "dawarich",
      "description": "Rails signing and encryption key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "STORAGE_BACKEND",
      "service": "dawarich",
      "description": "Store uploads in object storage",
      "secret": false,
      "strategy": "default",
      "default": "s3"
    },
    {
      "key": "WEB_CONCURRENCY",
      "service": "dawarich",
      "description": "Puma worker processes",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "AWS_ENDPOINT_URL",
      "service": "dawarich",
      "description": "S3-compatible endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "APPLICATION_HOSTS",
      "service": "dawarich",
      "description": "Hostnames the app answers on",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "dawarich",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_PASSWORD",
      "service": "dawarich",
      "description": "Database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_USERNAME",
      "service": "dawarich",
      "description": "Database role",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILS_MAX_THREADS",
      "service": "dawarich",
      "description": "Puma threads per worker, and the DB pool size",
      "secret": false,
      "strategy": "default",
      "default": "5"
    },
    {
      "key": "RAILS_LOG_TO_STDOUT",
      "service": "dawarich",
      "description": "Send logs to the deploy log",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "APPLICATION_PROTOCOL",
      "service": "dawarich",
      "description": "Enables HSTS and secure cookies",
      "secret": false,
      "strategy": "default",
      "default": "https"
    },
    {
      "key": "DAWARICH_ADMIN_EMAIL",
      "service": "dawarich",
      "description": "First admin account, seeded on first boot",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "dawarich",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DAWARICH_ADMIN_PASSWORD",
      "service": "dawarich",
      "description": "First admin password, change after signing in",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "OTP_ENCRYPTION_PRIMARY_KEY",
      "service": "dawarich",
      "description": "Two-factor secret encryption key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "dawarich",
      "description": "First boot migrates and seeds countries",
      "secret": false,
      "strategy": "default",
      "default": "600"
    },
    {
      "key": "OTP_ENCRYPTION_DETERMINISTIC_KEY",
      "service": "dawarich",
      "description": "Two-factor deterministic key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ALLOW_EMAIL_PASSWORD_REGISTRATION",
      "service": "dawarich",
      "description": "Keep public signup closed",
      "secret": true,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "OTP_ENCRYPTION_KEY_DERIVATION_SALT",
      "service": "dawarich",
      "description": "Two-factor key derivation salt",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "dawarich-timeline"
      }
    },
    "cli": "railway deploy --template dawarich-timeline",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d7f3aefd-a23a-4e26-82f1-31f703646cb6",
            "serializedConfig": {
              "buckets": {
                "50ba4f03-eac7-4908-9c1e-d8dac0f7bcae": {
                  "name": "dawarich-storage"
                }
              },
              "services": {
                "293954b4-076c-4397-b3a5-bf9e25370008": {
                  "icon": "https://raw.githubusercontent.com/sidekiq/sidekiq/main/web/assets/images/logo.png",
                  "name": "dawarich-sidekiq",
                  "deploy": {
                    "startCommand": "railway-entrypoint.sh sidekiq-entrypoint.sh",
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/dawarich-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "RAILS_ENV": {
                      "isOptional": false,
                      "description": "Rails environment",
                      "defaultValue": "production"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Queue the worker consumes",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "TIME_ZONE": {
                      "isOptional": true,
                      "description": "Timezone for dates and statistics",
                      "defaultValue": "UTC"
                    },
                    "AWS_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket name",
                      "defaultValue": "${{dawarich-storage.BUCKET}}"
                    },
                    "AWS_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{dawarich-storage.REGION}}"
                    },
                    "SELF_HOSTED": {
                      "isOptional": false,
                      "description": "Enables the self-hosted feature set",
                      "defaultValue": "true"
                    },
                    "DATABASE_HOST": {
                      "isOptional": false,
                      "description": "Private PostGIS hostname",
                      "defaultValue": "postgis.railway.internal"
                    },
                    "DATABASE_NAME": {
                      "isOptional": false,
                      "description": "Application database",
                      "defaultValue": "${{postgis.POSTGRES_DB}}"
                    },
                    "DATABASE_PORT": {
                      "isOptional": false,
                      "description": "PostGIS port",
                      "defaultValue": "5432"
                    },
                    "STORE_GEODATA": {
                      "isOptional": false,
                      "description": "Keep raw geocoding responses",
                      "defaultValue": "true"
                    },
                    "SECRET_KEY_BASE": {
                      "isOptional": false,
                      "description": "Must match the web service",
                      "defaultValue": "${{dawarich.SECRET_KEY_BASE}}"
                    },
                    "STORAGE_BACKEND": {
                      "isOptional": false,
                      "description": "Store uploads in object storage",
                      "defaultValue": "s3"
                    },
                    "AWS_ENDPOINT_URL": {
                      "isOptional": false,
                      "description": "S3-compatible endpoint",
                      "defaultValue": "${{dawarich-storage.ENDPOINT}}"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{dawarich-storage.ACCESS_KEY_ID}}"
                    },
                    "DATABASE_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password",
                      "defaultValue": "${{postgis.POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_USERNAME": {
                      "isOptional": false,
                      "description": "Database role",
                      "defaultValue": "${{postgis.POSTGRES_USER}}"
                    },
                    "RAILS_LOG_TO_STDOUT": {
                      "isOptional": false,
                      "description": "Send logs to the deploy log",
                      "defaultValue": "true"
                    },
                    "APPLICATION_PROTOCOL": {
                      "isOptional": false,
                      "description": "Scheme used in generated URLs",
                      "defaultValue": "https"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{dawarich-storage.SECRET_ACCESS_KEY}}"
                    },
                    "OTP_ENCRYPTION_PRIMARY_KEY": {
                      "isOptional": false,
                      "description": "Must match the web service",
                      "defaultValue": "${{dawarich.OTP_ENCRYPTION_PRIMARY_KEY}}"
                    },
                    "OTP_ENCRYPTION_DETERMINISTIC_KEY": {
                      "isOptional": false,
                      "description": "Must match the web service",
                      "defaultValue": "${{dawarich.OTP_ENCRYPTION_DETERMINISTIC_KEY}}"
                    },
                    "ALLOW_EMAIL_PASSWORD_REGISTRATION": {
                      "isOptional": true,
                      "description": "Keep public signup closed",
                      "defaultValue": "false"
                    },
                    "BACKGROUND_PROCESSING_CONCURRENCY": {
                      "isOptional": true,
                      "description": "Sidekiq threads",
                      "defaultValue": "3"
                    },
                    "OTP_ENCRYPTION_KEY_DERIVATION_SALT": {
                      "isOptional": false,
                      "description": "Must match the web service",
                      "defaultValue": "${{dawarich.OTP_ENCRYPTION_KEY_DERIVATION_SALT}}"
                    }
                  }
                },
                "2967cd66-acd3-447a-a3a8-520d178d0959": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/redis.svg",
                  "name": "Redis",
                  "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\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auth password, read by the server",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "2967cd66-acd3-447a-a3a8-520d178d0959": {
                      "mountPath": "/data"
                    }
                  }
                },
                "47e32000-37ef-4b34-a784-61c63d362883": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postgresql.svg",
                  "name": "postgis",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh postgres -c data_directory=/var/lib/postgresql/data/pgdata -c listen_addresses=*",
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgis/postgis:17-3.5-alpine"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Cluster one level below the mount root",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "dawarich"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first boot",
                      "defaultValue": "dawarich"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "47e32000-37ef-4b34-a784-61c63d362883": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "befbcfa8-b370-43e6-a49f-d846faaa7e9b": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/dawarich.svg",
                  "name": "dawarich",
                  "deploy": {
                    "startCommand": "railway-entrypoint.sh web-entrypoint.sh rails server -b ::",
                    "healthcheckPath": "/api/v1/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/dawarich-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Puma listening port",
                      "defaultValue": "3000"
                    },
                    "RAILS_ENV": {
                      "isOptional": false,
                      "description": "Rails environment",
                      "defaultValue": "production"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Queue, cache and live updates",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "TIME_ZONE": {
                      "isOptional": true,
                      "description": "Timezone for dates and statistics",
                      "defaultValue": "UTC"
                    },
                    "AWS_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket name",
                      "defaultValue": "${{dawarich-storage.BUCKET}}"
                    },
                    "AWS_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{dawarich-storage.REGION}}"
                    },
                    "SELF_HOSTED": {
                      "isOptional": false,
                      "description": "Enables the self-hosted feature set",
                      "defaultValue": "true"
                    },
                    "DATABASE_HOST": {
                      "isOptional": false,
                      "description": "Private PostGIS hostname",
                      "defaultValue": "postgis.railway.internal"
                    },
                    "DATABASE_NAME": {
                      "isOptional": false,
                      "description": "Application database",
                      "defaultValue": "${{postgis.POSTGRES_DB}}"
                    },
                    "DATABASE_PORT": {
                      "isOptional": false,
                      "description": "PostGIS port",
                      "defaultValue": "5432"
                    },
                    "STORE_GEODATA": {
                      "isOptional": false,
                      "description": "Keep raw geocoding responses",
                      "defaultValue": "true"
                    },
                    "SECRET_KEY_BASE": {
                      "isOptional": false,
                      "description": "Rails signing and encryption key",
                      "defaultValue": "{{SECRET_KEY_BASE}}"
                    },
                    "STORAGE_BACKEND": {
                      "isOptional": false,
                      "description": "Store uploads in object storage",
                      "defaultValue": "s3"
                    },
                    "WEB_CONCURRENCY": {
                      "isOptional": true,
                      "description": "Puma worker processes",
                      "defaultValue": "2"
                    },
                    "AWS_ENDPOINT_URL": {
                      "isOptional": false,
                      "description": "S3-compatible endpoint",
                      "defaultValue": "${{dawarich-storage.ENDPOINT}}"
                    },
                    "APPLICATION_HOSTS": {
                      "isOptional": false,
                      "description": "Hostnames the app answers on",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{dawarich-storage.ACCESS_KEY_ID}}"
                    },
                    "DATABASE_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password",
                      "defaultValue": "${{postgis.POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_USERNAME": {
                      "isOptional": false,
                      "description": "Database role",
                      "defaultValue": "${{postgis.POSTGRES_USER}}"
                    },
                    "RAILS_MAX_THREADS": {
                      "isOptional": true,
                      "description": "Puma threads per worker, and the DB pool size",
                      "defaultValue": "5"
                    },
                    "RAILS_LOG_TO_STDOUT": {
                      "isOptional": false,
                      "description": "Send logs to the deploy log",
                      "defaultValue": "true"
                    },
                    "APPLICATION_PROTOCOL": {
                      "isOptional": false,
                      "description": "Enables HSTS and secure cookies",
                      "defaultValue": "https"
                    },
                    "DAWARICH_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "First admin account, seeded on first boot",
                      "defaultValue": "admin@example.com"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{dawarich-storage.SECRET_ACCESS_KEY}}"
                    },
                    "DAWARICH_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "First admin password, change after signing in",
                      "defaultValue": "{{DAWARICH_ADMIN_PASSWORD}}"
                    },
                    "OTP_ENCRYPTION_PRIMARY_KEY": {
                      "isOptional": false,
                      "description": "Two-factor secret encryption key",
                      "defaultValue": "{{OTP_ENCRYPTION_PRIMARY_KEY}}"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "First boot migrates and seeds countries",
                      "defaultValue": "600"
                    },
                    "OTP_ENCRYPTION_DETERMINISTIC_KEY": {
                      "isOptional": false,
                      "description": "Two-factor deterministic key",
                      "defaultValue": "{{OTP_ENCRYPTION_DETERMINISTIC_KEY}}"
                    },
                    "ALLOW_EMAIL_PASSWORD_REGISTRATION": {
                      "isOptional": true,
                      "description": "Keep public signup closed",
                      "defaultValue": "false"
                    },
                    "OTP_ENCRYPTION_KEY_DERIVATION_SALT": {
                      "isOptional": false,
                      "description": "Two-factor key derivation salt",
                      "defaultValue": "{{OTP_ENCRYPTION_KEY_DERIVATION_SALT}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "dawarich",
      "method": "GET",
      "path": "/api/v1/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-04T17:54:19.363Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-04T18:00:14.039Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_76f829dde0844aaf89bd",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 290,
    "typical_build_seconds": 81,
    "typical_start_seconds": 10,
    "slowest_service": "dawarich-sidekiq"
  }
}
