mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-09 20:04:11 +01:00
Update readme.md - move client_max_body_size directive in server block
client_max_body_size only works in server block, not location
This commit is contained in:
parent
293851d931
commit
edee6c1832
10
readme.md
10
readme.md
@ -108,6 +108,11 @@ server {
|
|||||||
ssl_certificate /path/to/certificate;
|
ssl_certificate /path/to/certificate;
|
||||||
ssl_certificate_key /path/to/key;
|
ssl_certificate_key /path/to/key;
|
||||||
|
|
||||||
|
# Prevent 413 Request Entity Too Large error
|
||||||
|
# by increasing the maximum allowed size of the client request body
|
||||||
|
# For example, set it to 10 GiB
|
||||||
|
client_max_body_size 10240M;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
@ -119,11 +124,6 @@ server {
|
|||||||
|
|
||||||
proxy_pass http://<URL_to_forward_to>;
|
proxy_pass http://<URL_to_forward_to>;
|
||||||
proxy_redirect http:// https://;
|
proxy_redirect http:// https://;
|
||||||
|
|
||||||
# Prevent 413 Request Entity Too Large error
|
|
||||||
# by increasing the maximum allowed size of the client request body
|
|
||||||
# For example, set it to 10 GiB
|
|
||||||
client_max_body_size 10240M;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user