mirror of
https://github.com/jambonz/jambonz-infrastructure.git
synced 2026-07-24 14:51:47 +00:00
remove an nginx (nohome) filter that was triggered by valid requests to retrieve recent calls
This commit is contained in:
@@ -63,7 +63,7 @@ Mappings:
|
||||
us-east-1:
|
||||
Ami: ami-01c840e45dc7fa298
|
||||
us-east-2:
|
||||
Ami: ami-05e57bc7ff0fe0d34
|
||||
Ami: ami-0b022469a0254a6c0
|
||||
|
||||
Resources:
|
||||
VPC:
|
||||
@@ -133,6 +133,8 @@ Resources:
|
||||
- >
|
||||
sudo -u admin bash -c "pm2 restart
|
||||
/home/admin/apps/ecosystem.config.js"
|
||||
- >
|
||||
sleep 5
|
||||
- >
|
||||
sudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u admin --hp /home/admin
|
||||
- >
|
||||
|
||||
@@ -336,6 +336,7 @@ module.exports = {
|
||||
NODE_ENV: 'production',
|
||||
LOGLEVEL: 'info',
|
||||
DTMF_ONLY: true,
|
||||
RTPENGINE_DTMF_LOG_PORT: 22223,
|
||||
ENABLE_METRICS: 1,
|
||||
STATS_HOST: '127.0.0.1',
|
||||
STATS_PORT: 8125,
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
[Definition]
|
||||
|
||||
failregex = ^<HOST> -.*GET .*/~.*
|
||||
|
||||
ignoreregex =
|
||||
@@ -30,12 +30,10 @@ sudo chmod 0644 /etc/fail2ban/filter.d/drachtio.conf
|
||||
# add nginx jails and filters
|
||||
sudo cp /tmp/nginx-noscript.jail /etc/fail2ban/jail.d/nginx-noscript.conf
|
||||
sudo cp /tmp/nginx-noproxy.jail /etc/fail2ban/jail.d/nginx-noproxy.conf
|
||||
sudo cp /tmp/nginx-nohome.jail /etc/fail2ban/jail.d/nginx-nohome.conf
|
||||
sudo cp /tmp/nginx-badbots.jail /etc/fail2ban/jail.d/nginx-badbots.conf
|
||||
|
||||
sudo cp /tmp/nginx-noscript.filter /etc/fail2ban/filter.d/nginx-noscript.conf
|
||||
sudo cp /tmp/nginx-noproxy.filter /etc/fail2ban/filter.d/nginx-noproxy.conf
|
||||
sudo cp /tmp/nginx-nohome.filter /etc/fail2ban/filter.d/nginx-nohome.conf
|
||||
sudo cp /tmp/nginx-badbots.filter /etc/fail2ban/filter.d/nginx-badbots.conf
|
||||
|
||||
sudo chmod 0644 /etc/fail2ban/jail.d/*.conf
|
||||
|
||||
Reference in New Issue
Block a user