From f978a4b2a62acdafe5d88eae0d9b5707cfdb45be Mon Sep 17 00:00:00 2001 From: vickytechkey Date: Sun, 9 Aug 2026 07:34:58 +0530 Subject: [PATCH] forgeo runner --- aws_cdk/lib/aws_cdk-stack.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/aws_cdk/lib/aws_cdk-stack.ts b/aws_cdk/lib/aws_cdk-stack.ts index 2df757c..46b6b83 100644 --- a/aws_cdk/lib/aws_cdk-stack.ts +++ b/aws_cdk/lib/aws_cdk-stack.ts @@ -34,9 +34,11 @@ export class AwsCdkStack extends cdk.Stack { // Woodpecker CI (Port 8000 open to public; Nginx on EC2 handles path-based security) securityGroup.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.tcp(8000), 'Allow Woodpecker Reverse Proxy'); - // Forgejo Git Service (Port 3000 open to public) - securityGroup.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.tcp(3000), 'Allow Forgejo Web UI'); - securityGroup.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.tcp(2222), 'Allow Forgejo SSH'); + // Forgejo Git Service (Port 3000 and 2222 open to public IPv4 and IPv6) + securityGroup.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.tcp(3000), 'Allow Forgejo Web UI IPv4'); + securityGroup.addIngressRule(ec2.Peer.anyIpv6(), ec2.Port.tcp(3000), 'Allow Forgejo Web UI IPv6'); + securityGroup.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.tcp(2222), 'Allow Forgejo SSH IPv4'); + securityGroup.addIngressRule(ec2.Peer.anyIpv6(), ec2.Port.tcp(2222), 'Allow Forgejo SSH IPv6'); // Django App Backends (Prod and Beta) securityGroup.addIngressRule(ec2.Peer.ipv4('16.113.57.0/24'), ec2.Port.tcp(8080), 'Allow Django Beta Backend');