Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

Details, one-time machine setup, and caveats: [dev/README.md](dev/README.md)

For UI-only work on macOS or without the local database/backend stack, use the
fixture mode documented in [dev/README.md](dev/README.md#fixture-ui-mode).

### secrets

- Required:
Expand Down
5 changes: 5 additions & 0 deletions apps/dashboard/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ CLOUDFLARE_HYPERDRIVE_LOCAL_CONNECTION_STRING_HYPERDRIVE="postgres://postgres:my
# The canonical URL.
ORIGIN="http://localhost:5173"

# Branding
# Use "ultramarine" for standalone Ultramarine Server deployments.
# This is read at build time. Defaults to "stack" when unset.
PUBLIC_DASHBOARD_BRAND="stack"

# Better Auth
# For production use 32+ characters generated with high entropy
# https://www.better-auth.com/docs/installation
Expand Down
29 changes: 29 additions & 0 deletions apps/dashboard/drizzle/0028_lame_james_howlett.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
CREATE TYPE "public"."managed_host_connection_mode" AS ENUM('direct_http', 'websocket', 'vsock_gateway', 'offline');--> statement-breakpoint
CREATE TYPE "public"."managed_host_connection_state" AS ENUM('online', 'offline', 'unknown');--> statement-breakpoint
CREATE TYPE "public"."managed_host_kind" AS ENUM('stack_vps', 'external', 'local');--> statement-breakpoint
CREATE TABLE "managed_hosts" (
"id" text PRIMARY KEY NOT NULL,
"display_name" text NOT NULL,
"owner_project_id" text NOT NULL,
"host_kind" "managed_host_kind" DEFAULT 'external' NOT NULL,
"linked_vm_id" text,
"connection_mode" "managed_host_connection_mode" DEFAULT 'direct_http' NOT NULL,
"connection_state" "managed_host_connection_state" DEFAULT 'unknown' NOT NULL,
"agent_url" text,
"bearer_token" text,
"last_seen_at" bigint,
"agent_version" text,
"hostname" text,
"os" text,
"arch" text,
"capabilities" jsonb,
"last_error" text,
"created_at" bigint DEFAULT (extract(epoch from now()) * 1000)::bigint NOT NULL,
"updated_at" bigint DEFAULT (extract(epoch from now()) * 1000)::bigint NOT NULL
);
--> statement-breakpoint
ALTER TABLE "managed_hosts" ADD CONSTRAINT "managed_hosts_owner_project_id_organization_id_fk" FOREIGN KEY ("owner_project_id") REFERENCES "public"."organization"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "managed_hosts" ADD CONSTRAINT "managed_hosts_linked_vm_id_vms_id_fk" FOREIGN KEY ("linked_vm_id") REFERENCES "public"."vms"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
CREATE INDEX "managed_hosts_owner_project_id_index" ON "managed_hosts" USING btree ("owner_project_id");--> statement-breakpoint
CREATE INDEX "managed_hosts_linked_vm_id_index" ON "managed_hosts" USING btree ("linked_vm_id");--> statement-breakpoint
CREATE INDEX "managed_hosts_connection_state_index" ON "managed_hosts" USING btree ("connection_state");
Loading
Loading