What is Nostr?
karakoram2 / Karakoram 2
npub1xxg…jx03
2023-05-12 11:48:59
in reply to nevent1q…wl00

karakoram2 on Nostr: What tech stack does the server run? Easiest would be to outsource it to cloud but ...

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;
}
}
}
```
Author Public Key
npub1xxg8w6g5xkmftz5wrpr24t43u9x48faumat9ag3jndes05u74rmq9qjx03