What tech stack does the server run? Easiest would be to outsource it to cloud but for manual deployments, it requires config/code updates.

On a personal blogging site, I used nginx with the config similar as below:

```

# Server-level configurations

http {

limit_conn_zone $binary_remote_addr zone=conn_limit_per_ip:10m;

server {

listen 80;

server_name example.com;

limit_conn conn_limit_per_ip 10;

# Application-level configurations

location / {

limit_req zone=req_limit_per_ip burst=10 nodelay;

proxy_pass http://backend_server;

proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=cache_zone:10m inactive=60m;

gzip on;

}

}

}

```

Reply to this note

Please Login to reply.

Discussion

No replies yet.