feat: allow setting port share protocol (#12383)

Co-authored-by: Garrett Delfosse <garrett@coder.com>
This commit is contained in:
Dean Sheather
2024-03-06 06:23:57 -08:00
committed by GitHub
parent 23ff807a27
commit 46a2ff1061
25 changed files with 624 additions and 130 deletions
+7 -1
View File
@@ -95,6 +95,11 @@ CREATE TYPE parameter_type_system AS ENUM (
'hcl'
);
CREATE TYPE port_share_protocol AS ENUM (
'http',
'https'
);
CREATE TYPE provisioner_job_status AS ENUM (
'pending',
'running',
@@ -1027,7 +1032,8 @@ CREATE TABLE workspace_agent_port_share (
workspace_id uuid NOT NULL,
agent_name text NOT NULL,
port integer NOT NULL,
share_level app_sharing_level NOT NULL
share_level app_sharing_level NOT NULL,
protocol port_share_protocol DEFAULT 'http'::port_share_protocol NOT NULL
);
CREATE TABLE workspace_agent_scripts (