{
  "manifest_version": "1.0.0",
  "template": {
    "id": "db94f24c-6698-4d15-990f-99802b647228",
    "slug": "diskus",
    "name": "diskus",
    "description": "An ultra-lightweight, privacy-first, and self-hosted Disqus alternative",
    "url": "https://railway.com/deploy/diskus",
    "upstream": {
      "repo_url": "https://github.com/fadhilbarkah/diskus"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "backend",
      "source": {
        "repo": "https://github.com/fadhilbarkah/diskus"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    },
    {
      "name": "frontend",
      "source": {
        "repo": "https://github.com/fadhilbarkah/diskus"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "API_URL",
      "service": "backend",
      "description": "REQUIRED for OAuth. The public root URL of your backend API (e.g., https://api.yourdomain.com). This is used to construct the correct redirect callback URLs for Google and GitHub.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "JWT_SECRET",
      "service": "backend",
      "description": "A secure, random string used to sign authentication tokens. In production, using a weak default secret will cause the server to refuse to start.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "API_BASE_URL",
      "service": "backend",
      "description": "The public URL of your backend API. Used to construct verification links in emails.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DATABASE_PATH",
      "service": "backend",
      "description": "The absolute or relative path to the SQLite database file.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "PORT",
      "service": "frontend",
      "description": "\tThe port the backend API listens on.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "VITE_API_URL",
      "service": "frontend",
      "description": "\tThe base API route the frontend should use. Required during the build step.",
      "secret": false,
      "strategy": "ask_user"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "diskus"
      }
    },
    "cli": "railway deploy --template diskus",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "db94f24c-6698-4d15-990f-99802b647228",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "af0ce33b-4b51-47cf-bf5a-c77b8e301ac7": {
                  "icon": "https://devicons.railway.com/i/bun.svg",
                  "name": "backend",
                  "deploy": {
                    "startCommand": "bun run start:backend",
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/fadhilbarkah/diskus",
                    "rootDirectory": null
                  },
                  "variables": {
                    "API_URL": {
                      "isOptional": false,
                      "description": "REQUIRED for OAuth. The public root URL of your backend API (e.g., https://api.yourdomain.com). This is used to construct the correct redirect callback URLs for Google and GitHub.",
                      "defaultValue": "{{API_URL}}"
                    },
                    "DEMO_MODE": {
                      "isOptional": true,
                      "description": "Set to true to enable “Read-Only” mode for the admin dashboard. Useful for public live demos. Visitors can still post comments, but dashboard users cannot delete or modify data.",
                      "defaultValue": ""
                    },
                    "SMTP_FROM": {
                      "isOptional": true,
                      "description": "The sender address (e.g., \"Diskus <noreply@yourdomain.com>\").",
                      "defaultValue": ""
                    },
                    "SMTP_HOST": {
                      "isOptional": true,
                      "description": "The SMTP server host (e.g., smtp.gmail.com).",
                      "defaultValue": ""
                    },
                    "SMTP_PASS": {
                      "isOptional": true,
                      "description": "Your SMTP password or App Password.",
                      "defaultValue": ""
                    },
                    "SMTP_PORT": {
                      "isOptional": true,
                      "description": "The port for your SMTP server.",
                      "defaultValue": ""
                    },
                    "SMTP_USER": {
                      "isOptional": true,
                      "description": "Your SMTP username or email.",
                      "defaultValue": ""
                    },
                    "JWT_SECRET": {
                      "isOptional": false,
                      "description": "A secure, random string used to sign authentication tokens. In production, using a weak default secret will cause the server to refuse to start.",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "API_BASE_URL": {
                      "isOptional": false,
                      "description": "The public URL of your backend API. Used to construct verification links in emails.",
                      "defaultValue": "{{API_BASE_URL}}"
                    },
                    "DATABASE_PATH": {
                      "isOptional": false,
                      "description": "The absolute or relative path to the SQLite database file.",
                      "defaultValue": "{{DATABASE_PATH}}"
                    },
                    "DASHBOARD_ORIGIN": {
                      "isOptional": true,
                      "description": "A comma-separated list of allowed origins that can access the Admin API (e.g., https://admin.yourdomain.com). Prevents unauthorized cross-origin requests.",
                      "defaultValue": ""
                    },
                    "GITHUB_CLIENT_ID": {
                      "isOptional": true,
                      "description": "Your GitHub OAuth App Client ID.",
                      "defaultValue": ""
                    },
                    "GOOGLE_CLIENT_ID": {
                      "isOptional": true,
                      "description": "Your Google OAuth 2.0 Client ID.",
                      "defaultValue": ""
                    },
                    "GITHUB_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "Your Google OAuth 2.0 Client Secret.",
                      "defaultValue": ""
                    },
                    "GOOGLE_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "Your GitHub OAuth App Client Secret.",
                      "defaultValue": ""
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "af0ce33b-4b51-47cf-bf5a-c77b8e301ac7": {
                      "mountPath": "/app/data"
                    }
                  }
                },
                "e9c42de7-3701-46a0-896f-1f91a0888431": {
                  "icon": "https://preactjs.com/app-icon.png",
                  "name": "frontend",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/fadhilbarkah/diskus",
                    "rootDirectory": ""
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "\tThe port the backend API listens on.",
                      "defaultValue": "{{PORT}}"
                    },
                    "VITE_API_URL": {
                      "isOptional": false,
                      "description": "\tThe base API route the frontend should use. Required during the build step.",
                      "defaultValue": "{{VITE_API_URL}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "backend",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T04:14:46.774Z",
  "generator_version": "0.1.0"
}
