infra: open ports 8080 and 8090 to public IPv4 for Django backends
This commit is contained in:
parent
fdbf7784a9
commit
2e78f04e2d
1 changed files with 3 additions and 3 deletions
|
|
@ -41,9 +41,9 @@ export class AwsCdkStack extends cdk.Stack {
|
|||
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');
|
||||
securityGroup.addIngressRule(ec2.Peer.ipv4('16.113.57.0/24'), ec2.Port.tcp(8090), 'Allow Django Production Backend');
|
||||
// Django App Backends (Prod and Beta) - Open to public so frontend users can connect
|
||||
securityGroup.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.tcp(8080), 'Allow Django Beta Backend (Public)');
|
||||
securityGroup.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.tcp(8090), 'Allow Django Production Backend (Public)');
|
||||
|
||||
// Access for betasuppliers.tipro.in
|
||||
const betaSuppliersIpsV4 = ['84.32.84.217/32', '88.222.222.1/32'];
|
||||
|
|
|
|||
Loading…
Reference in a new issue