Skip to content

Commit 05b6768

Browse files
authored
Merge pull request #331 from akkeris/COBRA-5020
COBRA-5020: BETA feature to allow additional (in-cluster only) ports on web dynos
2 parents 08fe181 + 5fc82e4 commit 05b6768

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

lib/common.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,7 @@ async function check_deployment_features(pg_pool, app_uuid, dyno_type) {
512512
'csp-media': await feature_enabled(pg_pool, app_uuid, 'csp-media'),
513513
'csp-unsafe': await feature_enabled(pg_pool, app_uuid, 'csp-unsafe'),
514514
'csp-embedded': await feature_enabled(pg_pool, app_uuid, 'csp-embedded'),
515+
'container-ports': await feature_enabled(pg_pool, app_uuid, 'container-ports'),
515516
};
516517
}
517518
return {

lib/features.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,16 @@ const available_features = [
125125
feedback_email: process.env.SUPPORT_EMAIL,
126126
enabled: false, /* Must always be false! */
127127
},
128+
{
129+
description: '(BETA) Add additional exposed ports to the web dyno (reachable in-cluster only) via a comma-separated list of port values specified in the CONTAINER_PORTS config var',
130+
doc_url: '/features/container-ports',
131+
id: 'bf51e09c-3965-4186-91d5-9b1e4e1f4b61',
132+
state: 'public',
133+
name: 'container-ports',
134+
display_name: 'In-cluster Container Ports',
135+
feedback_email: process.env.SUPPORT_EMAIL,
136+
enabled: false, /* Must always be false! */
137+
},
128138
];
129139

130140
function to_response(frecord) {

0 commit comments

Comments
 (0)