Skip to content

Instantly share code, notes, and snippets.

@rajveermalviya
Created September 30, 2024 17:01
Show Gist options
  • Save rajveermalviya/2188c9a8d1a3e21c2efea186d61026b2 to your computer and use it in GitHub Desktop.
Save rajveermalviya/2188c9a8d1a3e21c2efea186d61026b2 to your computer and use it in GitHub Desktop.
daemon off;
worker_processes auto;
events {
worker_connections 1024;
multi_accept on;
}
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
client_max_body_size 25m;
include /opt/homebrew/etc/nginx/mime.types;
default_type application/octet-stream;
error_log /dev/stdout;
access_log /dev/stdout;
reset_timedout_connection on;
gzip on;
gzip_proxied any;
gzip_comp_level 3;
gzip_types
application/javascript
application/json
application/xml
application/x-javascript
image/svg+xml
text/css
text/javascript
text/plain;
gzip_vary on;
server {
listen 8080;
server_name localhost;
root /Users/rajveer/Projects/dart-json-bench;
location / {
autoindex on;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment