Skip to content

Instantly share code, notes, and snippets.

@iammehrabalam
Last active January 29, 2024 10:59
Show Gist options
  • Save iammehrabalam/ed697ec7e2471665dd015c6bb7514486 to your computer and use it in GitHub Desktop.
Save iammehrabalam/ed697ec7e2471665dd015c6bb7514486 to your computer and use it in GitHub Desktop.
server {
server_name default_server;
listen 80;
location / {
proxy_pass http://localhost:8080;
proxy_set_header X-Real-IP $remote_addr;
client_max_body_size 5m;
client_body_buffer_size 5m;
set $max_chunk_size 10240;
set $max_body_size 524288;
rewrite_by_lua_file /etc/nginx/decompress_body.lua;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment