feat: wip implement port forwarding

This commit is contained in:
2024-11-20 21:05:31 +00:00
parent fb5e708fd8
commit 6e6fb06351
13 changed files with 790 additions and 356 deletions

View File

@@ -43,8 +43,7 @@ CREATE TABLE IF NOT EXISTS port_mappings
(
workspace_id TEXT NOT NULL,
container_port INTEGER NOT NULL,
host_port INTEGER NOT NULL,
subdomain TEXT,
CONSTRAINT pk_port_mappings PRIMARY KEY (workspace_id, container_port, host_port)
CONSTRAINT pk_port_mappings PRIMARY KEY (workspace_id, container_port, subdomain)
)