{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f9645037-9738-4e95-bb69-8d47abf03a9e",
    "slug": "yW3Kos",
    "name": "Shynet",
    "description": "Modern, privacy-friendly web analytics that works without cookies or JS.",
    "url": "https://railway.com/deploy/yW3Kos",
    "upstream": {
      "repo_url": "https://github.com/railwayapp-templates/shynet"
    }
  },
  "services": [
    {
      "name": "shynet",
      "source": {
        "repo": "https://github.com/railwayapp-templates/shynet"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "shynet",
      "description": "The port that Shynet should bind to.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "TIME_ZONE",
      "service": "shynet",
      "description": "The timezone of the admin panel. Affects how dates are displayed. IANA's tz value (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)",
      "secret": false,
      "strategy": "default",
      "default": "America/New_York"
    },
    {
      "key": "LOCATION_URL",
      "service": "shynet",
      "description": "Custom location url to link to in frontend.",
      "secret": false,
      "strategy": "default",
      "default": "https://www.openstreetmap.org/?mlat=$LATITUDE&mlon=$LONGITUDE"
    },
    {
      "key": "ALLOWED_HOSTS",
      "service": "shynet",
      "description": "Set these to your deployment's domain, can be comma separated",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BLOCK_ALL_IPS",
      "service": "shynet",
      "description": "Should Shynet block collection of IP addresses globally?",
      "secret": false,
      "strategy": "default",
      "default": "False"
    },
    {
      "key": "LANGUAGE_CODE",
      "service": "shynet",
      "description": "Localization (Django i18n)",
      "secret": false,
      "strategy": "default",
      "default": "en-us"
    },
    {
      "key": "SCRIPT_USE_HTTPS",
      "service": "shynet",
      "description": "Set to \"False\" if you will not be serving content over HTTPS",
      "secret": false,
      "strategy": "default",
      "default": "True"
    },
    {
      "key": "DJANGO_SECRET_KEY",
      "service": "shynet",
      "description": "General Django settings - to generate run: python3 -c \"import secrets; print(secrets.token_urlsafe())\"",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DASHBOARD_PAGE_SIZE",
      "service": "shynet",
      "description": "How many services should be displayed on dashboard page? Set to big number if you don't want pagination at all.",
      "secret": false,
      "strategy": "default",
      "default": "5"
    },
    {
      "key": "SHOW_SHYNET_VERSION",
      "service": "shynet",
      "description": "Provide a value for SHOW_SHYNET_VERSION.",
      "secret": false,
      "strategy": "default",
      "default": "True"
    },
    {
      "key": "CSRF_TRUSTED_ORIGINS",
      "service": "shynet",
      "description": "Deployments URL (requires a scheme (e.g., `https://`))",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ONLY_SUPERUSERS_CREATE",
      "service": "shynet",
      "description": "Provide a value for ONLY_SUPERUSERS_CREATE.",
      "secret": false,
      "strategy": "default",
      "default": "True"
    },
    {
      "key": "SESSION_MEMORY_TIMEOUT",
      "service": "shynet",
      "description": "How much time can elapse between requests from the same user before a new session is created, in seconds?",
      "secret": false,
      "strategy": "default",
      "default": "1800"
    },
    {
      "key": "SHOW_THIRD_PARTY_ICONS",
      "service": "shynet",
      "description": "Should Shynet show third-party icons in the dashboard?",
      "secret": false,
      "strategy": "default",
      "default": "True"
    },
    {
      "key": "ACCOUNT_SIGNUPS_ENABLED",
      "service": "shynet",
      "description": "Set to True (capitalized) if you want people to be able to sign up for your Shynet instance (not recommended)",
      "secret": false,
      "strategy": "default",
      "default": "False"
    },
    {
      "key": "AGGRESSIVE_HASH_SALTING",
      "service": "shynet",
      "description": "Should Shynet include the date and site ID when hashing users? This will prevent any possibility of cross-site tracking provided that IP collection is also disabled, and external keys (primary keys) aren't supplied. It will also prevent sessions from spanning one day to another.",
      "secret": false,
      "strategy": "default",
      "default": "True"
    },
    {
      "key": "ACCOUNT_EMAIL_VERIFICATION",
      "service": "shynet",
      "description": "Should user email addresses be verified? Only set this to `required` if you've setup the email settings and allow public sign-ups; otherwise, it's unnecessary.",
      "secret": false,
      "strategy": "default",
      "default": "none"
    },
    {
      "key": "SCRIPT_HEARTBEAT_FREQUENCY",
      "service": "shynet",
      "description": "How frequently should the monitoring script \"phone home\" (in ms)?",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "USE_RELATIVE_MAX_IN_BAR_VISUALIZATION",
      "service": "shynet",
      "description": "Should background bars be scaled to full width?",
      "secret": false,
      "strategy": "default",
      "default": "True"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to Postgres DB",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public URL to connect to Postgres database, used by the Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "yW3Kos"
      }
    },
    "cli": "railway deploy --template yW3Kos",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f9645037-9738-4e95-bb69-8d47abf03a9e",
            "serializedConfig": {
              "services": {
                "2bce0f8a-98cd-4485-ac0d-75085ce9962c": {
                  "name": "shynet",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "repo": "https://github.com/railwayapp-templates/shynet",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "The port that Shynet should bind to.",
                      "defaultValue": "8080"
                    },
                    "TIME_ZONE": {
                      "isOptional": false,
                      "description": "The timezone of the admin panel. Affects how dates are displayed. IANA's tz value (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)",
                      "defaultValue": "America/New_York"
                    },
                    "ADMIN_EMAIL": {
                      "isOptional": true,
                      "description": "The email address of the admin user (set it after one deployment succeed)"
                    },
                    "LOCATION_URL": {
                      "isOptional": false,
                      "description": "Custom location url to link to in frontend.",
                      "defaultValue": "https://www.openstreetmap.org/?mlat=$LATITUDE&mlon=$LONGITUDE"
                    },
                    "ALLOWED_HOSTS": {
                      "isOptional": false,
                      "description": "Set these to your deployment's domain, can be comma separated",
                      "defaultValue": "${{RAILWAY_STATIC_URL}}"
                    },
                    "BLOCK_ALL_IPS": {
                      "isOptional": false,
                      "description": "Should Shynet block collection of IP addresses globally?",
                      "defaultValue": "False"
                    },
                    "LANGUAGE_CODE": {
                      "isOptional": false,
                      "description": "Localization (Django i18n)",
                      "defaultValue": "en-us"
                    },
                    "SCRIPT_USE_HTTPS": {
                      "isOptional": false,
                      "description": "Set to \"False\" if you will not be serving content over HTTPS",
                      "defaultValue": "True"
                    },
                    "DJANGO_SECRET_KEY": {
                      "isOptional": false,
                      "description": "General Django settings - to generate run: python3 -c \"import secrets; print(secrets.token_urlsafe())\"",
                      "defaultValue": "{{DJANGO_SECRET_KEY}}"
                    },
                    "DASHBOARD_PAGE_SIZE": {
                      "isOptional": false,
                      "description": "How many services should be displayed on dashboard page? Set to big number if you don't want pagination at all.",
                      "defaultValue": "5"
                    },
                    "SHOW_SHYNET_VERSION": {
                      "isOptional": false,
                      "defaultValue": "True"
                    },
                    "CSRF_TRUSTED_ORIGINS": {
                      "isOptional": false,
                      "description": "Deployments URL (requires a scheme (e.g., `https://`))",
                      "defaultValue": "https://${{RAILWAY_STATIC_URL}}"
                    },
                    "ONLY_SUPERUSERS_CREATE": {
                      "isOptional": false,
                      "defaultValue": "True"
                    },
                    "SESSION_MEMORY_TIMEOUT": {
                      "isOptional": false,
                      "description": "How much time can elapse between requests from the same user before a new session is created, in seconds?",
                      "defaultValue": "1800"
                    },
                    "SHOW_THIRD_PARTY_ICONS": {
                      "isOptional": false,
                      "description": "Should Shynet show third-party icons in the dashboard?",
                      "defaultValue": "True"
                    },
                    "ACCOUNT_SIGNUPS_ENABLED": {
                      "isOptional": false,
                      "description": "Set to True (capitalized) if you want people to be able to sign up for your Shynet instance (not recommended)",
                      "defaultValue": "False"
                    },
                    "AGGRESSIVE_HASH_SALTING": {
                      "isOptional": false,
                      "description": "Should Shynet include the date and site ID when hashing users? This will prevent any possibility of cross-site tracking provided that IP collection is also disabled, and external keys (primary keys) aren't supplied. It will also prevent sessions from spanning one day to another.",
                      "defaultValue": "True"
                    },
                    "ACCOUNT_EMAIL_VERIFICATION": {
                      "isOptional": false,
                      "description": "Should user email addresses be verified? Only set this to `required` if you've setup the email settings and allow public sign-ups; otherwise, it's unnecessary.",
                      "defaultValue": "none"
                    },
                    "SCRIPT_HEARTBEAT_FREQUENCY": {
                      "isOptional": false,
                      "description": "How frequently should the monitoring script \"phone home\" (in ms)?",
                      "defaultValue": "5000"
                    },
                    "USE_RELATIVE_MAX_IN_BAR_VISUALIZATION": {
                      "isOptional": false,
                      "description": "Should background bars be scaled to full width?",
                      "defaultValue": "True"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {}
                },
                "61a53e23-2956-460f-bc69-82d2e439b29e": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {},
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:latest"
                  },
                  "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}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "61a53e23-2956-460f-bc69-82d2e439b29e": {
                      "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."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T17:06:56.208Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_f8f665f5ffc24dea9387",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 94,
    "typical_build_seconds": 54,
    "typical_start_seconds": 11,
    "slowest_service": "shynet"
  }
}
