I am getting spammed by bots getting past nginx. I need to stop these bots at Nginx. The emails I get are Django logs which say "Invalid host header". My Nginx.conf file looks like this: ``` upstream backend_server { server backend:8000; } upstream backend_asgi { server backend_asgi:8001; } server { listen 80 default_server; listen [::]:80 default_server;by 5starkarma - How to...
My setup is a Django application served with gunicorn and Nginx. I am adding React one page at a time so therefore I need to only serve specific pages from React. To make it easier to route using Nginx I decided to make every React route start with `/v2/`. Therefore the Nginx conf file looks like this right now: ``` upstream backend_server { server backend:8000; } server { liby 5starkarma - How to...