fix: remove repository-local server configuration paths

This commit is contained in:
2026-08-26 03:56:35 +09:00
parent 33db2ea7f4
commit 864367f4f5
11 changed files with 340 additions and 1174 deletions
-61
View File
@@ -1,61 +0,0 @@
# Workspace Backend local config template.
#
# `yoi-server init` copies this packaged template to
# `.yoi/workspace-backend.local.toml` without overwriting an existing file.
# The `.local` file is intentionally git-ignored.
#
# Print the latest packaged template with:
# yoi-server config default
#
# Compare the local config with the latest packaged template with:
# yoi-server config diff
#
# Omit a key to use the built-in fallback. TOML has no `null`, so optional
# settings are represented by leaving the key commented out.
[server]
# Backend HTTP/WebSocket listen address.
listen = "127.0.0.1:8787"
# Static SPA build directory override. Leave commented for dev/API-only mode.
# Relative paths are resolved from the workspace root.
# static_assets_dir = "web/workspace/dist"
[data]
# Workspace-scoped runtime/data root override. Leave commented to use the user-data fallback:
# <data_dir>/server/workspaces/<workspace_id>/
# Relative paths are resolved from the workspace root.
# root = ".yoi/workspace-backend.data"
# Explicit control-plane SQLite DB path override. Normal `serve` uses the Yoi
# server DB at `<data_dir>/server/server.db`; keep this commented unless a
# local test needs a custom DB path.
# workspace_database_path = ".yoi/workspace-backend.data/server.db"
# Explicit embedded Runtime fs-store root override.
# If omitted, this falls back to `<data.root>/embedded-runtime`.
# embedded_runtime_store_root = ".yoi/workspace-backend.data/embedded-runtime"
[limits]
max_records = 200
[auth]
# Vite owns this origin in local development. Set YOI_BROWSER_PUBLIC_URL to the
# browser-facing Nginx origin in deployments. The Server derives the WebAuthn
# origin, RP ID, device-login URL, cookie policy, and CSRF check from this URL.
browser_public_url = "http://localhost:5173"
cookie_name = "yoi_workspace_session"
# Repository registry. Browser/API repository projection reads only configured
# entries and never falls back to the backend process cwd. Relative URI values
# are resolved from this workspace config root. Git is the v0 supported provider.
#
# [[repositories]]
# id = "main"
# provider = "git"
# uri = "."
# display_name = "Main repository"
# default_selector = "HEAD"
# Runtime registrations live in `$XDG_CONFIG_HOME/yoi/runtimes.toml`
# or `YOI_CONFIG_DIR/runtimes.toml`, not in workspace backend config.