Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added real IP and block IP functionality. #714

Merged
merged 2 commits into from
Jul 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .ebextensions/web.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,22 @@ option_settings:
value: 600

files:
"/etc/nginx/conf.d/proxy.conf" :
"/etc/nginx/conf.d/proxy.conf":
content: |
client_max_body_size 10M;
"/etc/nginx/conf.d/blockips.conf":
content: |
deny 104.160.37.205;
deny 13.56.21.188;
deny 185.28.249.190;
deny 47.240.44.214;
deny 5.101.0.209;
deny 88.230.96.236;
"/etc/nginx/conf.d/realip.conf":
content: |
real_ip_header X-Forwarded-For;
real_ip_recursive on;
set_real_ip_from 172.31.0.0/16;

commands:
match_nginx_timeout_to_elb_timeout:
Expand Down