Skip to content

Commit

Permalink
do not create HTTP listener
Browse files Browse the repository at this point in the history
  • Loading branch information
awick committed Mar 27, 2024
1 parent ce4f56c commit 996f5bd
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions cdk-lib/viewer-stacks/viewer-nodes-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,6 @@ export class ViewerNodesStack extends cdk.Stack {
lb.addSecurityGroup(sg);
}

const listener = lb.addListener('Listener', {
protocol: elbv2.ApplicationProtocol.HTTP,
port: 80,
open: true
});

// Our Arkime Capture container
const container = taskDefinition.addContainer('ViewerContainer', {
image: ecs.ContainerImage.fromAsset(path.resolve(__dirname, '..', '..', 'docker-viewer-node')),
Expand All @@ -153,6 +147,13 @@ export class ViewerNodesStack extends cdk.Stack {
hostPort: viewerPort
});

/*
const listener = lb.addListener('Listener', {
protocol: elbv2.ApplicationProtocol.HTTP,
port: 80,
open: true
});
listener.addTargets('TargetGroup', {
protocol: elbv2.ApplicationProtocol.HTTP,
port: viewerPort,
Expand All @@ -168,6 +169,7 @@ export class ViewerNodesStack extends cdk.Stack {
interval: cdk.Duration.seconds(30),
},
});
*/

const certificate = acm.Certificate.fromCertificateArn(this, 'ViewerCert', props.arnViewerCert);
const httpsListener = lb.addListener('HttpsListener', {
Expand Down

0 comments on commit 996f5bd

Please sign in to comment.