{
  "manifest_version": "1.0.0",
  "template": {
    "id": "09d78c4d-7567-4313-a11d-d8d868f3f465",
    "slug": "textlog",
    "name": "textlog",
    "description": "Self-hosted microblog. 280-char notes, hashtags, replies, RSS, SQLite",
    "url": "https://railway.com/deploy/textlog",
    "upstream": {
      "image": "ghcr.io/hmseeb/textlog-railway:v1"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "textlog",
      "source": {
        "image": "ghcr.io/hmseeb/textlog-railway:v1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "HOST",
      "service": "textlog",
      "description": "Listen address. Leave as is; Railway reaches containers over IPv6.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "PORT",
      "service": "textlog",
      "description": "Port the app listens on.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "APP_URL",
      "service": "textlog",
      "description": "Public address of your instance. Sign-in links are built from it.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NODE_ENV",
      "service": "textlog",
      "description": "Run mode.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "ADMIN_EMAILS",
      "service": "textlog",
      "description": "Email address that gets the moderation queue. Sign in with this one.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DATABASE_PATH",
      "service": "textlog",
      "description": "SQLite file. Lives on the disk so it survives redeploys.",
      "secret": false,
      "strategy": "default",
      "default": "/data/textlog.sqlite"
    },
    {
      "key": "DATABASE_BACKUP_DIR",
      "service": "textlog",
      "description": "Daily database backups. Must not be the database file itself.",
      "secret": false,
      "strategy": "default",
      "default": "/data/backups"
    },
    {
      "key": "IP_PSEUDONYM_SECRET",
      "service": "textlog",
      "description": "Salt for the daily-rotating visitor pseudonyms used in rate limiting.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MODERATION_DISABLED",
      "service": "textlog",
      "description": "Set to false, and add an OpenAI key, to check new notes automatically.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "textlog"
      }
    },
    "cli": "railway deploy --template textlog",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "09d78c4d-7567-4313-a11d-d8d868f3f465",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "0452ca60-385e-460b-b0ca-fae9d1f3aa17": {
                  "icon": "https://textlog.cc/android-chrome-512x512.png",
                  "name": "textlog",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/hmseeb/textlog-railway:v1"
                  },
                  "variables": {
                    "HOST": {
                      "isOptional": false,
                      "description": "Listen address. Leave as is; Railway reaches containers over IPv6.",
                      "defaultValue": "::"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the app listens on.",
                      "defaultValue": "3000"
                    },
                    "APP_URL": {
                      "isOptional": false,
                      "description": "Public address of your instance. Sign-in links are built from it.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Run mode.",
                      "defaultValue": "production"
                    },
                    "EMAIL_FROM": {
                      "isOptional": true,
                      "description": "Optional, and only works alongside a Resend key. e.g. textlog <hi@you.com>",
                      "defaultValue": ""
                    },
                    "ADMIN_EMAILS": {
                      "isOptional": false,
                      "description": "Email address that gets the moderation queue. Sign in with this one.",
                      "defaultValue": "{{ADMIN_EMAILS}}"
                    },
                    "DATABASE_PATH": {
                      "isOptional": false,
                      "description": "SQLite file. Lives on the disk so it survives redeploys.",
                      "defaultValue": "/data/textlog.sqlite"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. Only needed when MODERATION_DISABLED is false.",
                      "defaultValue": ""
                    },
                    "RESEND_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. Without it, sign-in links are printed to this service's logs.",
                      "defaultValue": ""
                    },
                    "DATABASE_BACKUP_DIR": {
                      "isOptional": false,
                      "description": "Daily database backups. Must not be the database file itself.",
                      "defaultValue": "/data/backups"
                    },
                    "IP_PSEUDONYM_SECRET": {
                      "isOptional": false,
                      "description": "Salt for the daily-rotating visitor pseudonyms used in rate limiting.",
                      "defaultValue": "{{IP_PSEUDONYM_SECRET}}"
                    },
                    "MODERATION_DISABLED": {
                      "isOptional": false,
                      "description": "Set to false, and add an OpenAI key, to check new notes automatically.",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "0452ca60-385e-460b-b0ca-fae9d1f3aa17": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "textlog",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0"
}
