This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
limit_req_zone $binary_remote_addr zone=mylimit:10m rate=10r/s; | |
limit_conn_zone $binary_remote_addr zone=addr:10m; | |
server { | |
server_name mydomain.com; | |
limit_req zone=mylimit burst=15; | |
limit_conn addr 10; | |
limit_req_status 429; | |
client_max_body_size 8M; | |
location / { | |
proxy_pass http://localhost:8000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###### | |
## See https://github.com/awsdocs/elastic-beanstalk-samples/tree/main/configuration-files/aws-provided/security-configuration for refrence. | |
# .ebextensions/https-instance-securitygroup.config | |
Resources: | |
sslSecurityGroupIngress: | |
Type: AWS::EC2::SecurityGroupIngress | |
Properties: | |
GroupId: {"Fn::GetAtt" : ["AWSEBSecurityGroup", "GroupId"]} | |
IpProtocol: tcp | |
ToPort: 443 |
OlderNewer