Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client_max_body_size to specific location #1359

Open
dyorgio opened this issue Nov 11, 2019 · 0 comments
Open

client_max_body_size to specific location #1359

dyorgio opened this issue Nov 11, 2019 · 0 comments

Comments

@dyorgio
Copy link

dyorgio commented Nov 11, 2019

Hi guys, client_max_body_size is a old topic here...

I already make it work for all locations, customizing proxy.conf.

I tried to customize a vhost.d/${host}, and all nginx-proxy (redirects) stopped to work.

Could you add an example on README/wiki to customize specific location settings, like:

# favicon.ico
location = /favicon.ico {
	log_not_found off;
	access_log off;
}

# robots.txt
location = /robots.txt {
	log_not_found off;
	access_log off;
}

# assets, media
location ~* \.(?:css(\.map)?|js(\.map)?|jpe?g|png|gif|ico|cur|heic|webp|tiff?|mp3|m4a|aac|ogg|midi?|wav|mp4|mov|webm|mpe?g|avi|ogv|flv|wmv)$ {
	expires 7d;
	access_log off;
}

# svg, fonts
location ~* \.(?:svgz?|ttf|ttc|otf|eot|woff2?)$ {
	add_header Access-Control-Allow-Origin "*";
	expires 7d;
	access_log off;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant