Skip to content

en Configuration

github-actions[bot] edited this page Jul 6, 2026 · 2 revisions

← README · Wiki · 中文

Overview · Features · Tech Stack · Quick Start · Deployment · Project Structure · Architecture · Widgets · API · Database · Settings · Security · Configuration · Roadmap · License

Configuration Reference

  • wrangler.jsonc — local development (wrangler dev); no vars — configure Access only in the dashboard
  • wrangler.production.jsonc.example — production config template
  • wrangler.production.jsonc — your production config (gitignored; copy from template or generate via script); no vars/secrets so deploys do not overwrite dashboard settings

Example root wrangler.jsonc:

{
  "name": "ternssh",
  "main": "server/src/index.ts",
  "assets": {
    "directory": "./server/public",
    "not_found_handling": "single-page-application",
    "run_worker_first": ["/api/*"]
  },
  "d1_databases": [{
    "binding": "DB",
    "database_name": "ternssh",
    "database_id": "local-ternssh-db",
    "migrations_dir": "server/migrations"
  }],
  "durable_objects": {
    "bindings": [{ "name": "SSH_SESSION", "class_name": "SshSession" }]
  },
  "migrations": [{ "tag": "v1", "new_sqlite_classes": ["SshSession"] }]
}

Frontend build output goes to server/public/ (build.outDir in web/vite.config.ts).

Clone this wiki locally