Skip to content

Commit d977699

Browse files
authored
Merge pull request #58 from FoamToaster/patch-2
Increase Nginx maximum post size
2 parents eb37264 + 42e4cc8 commit d977699

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pages/reverse-proxies/nginx.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ Copy your config from here:
145145
# Disable directory listing for security
146146
autoindex off;
147147
148+
# Increase maximum post size to prevent 413 error with images larger than 2MB (changes max size to 100MB)
149+
client_max_body_size 100M;
150+
148151
# Enable Gzip compression for better performance
149152
gzip on;
150153
gzip_comp_level 6;
@@ -222,4 +225,4 @@ sudo systemctl reload nginx
222225
```
223226
### Vuola!
224227
Your Nginx reverse proxy is now running, securely serving your Postiz instance at your subdomain.domain.tld. 🎉
225-
</Steps>
228+
</Steps>

0 commit comments

Comments
 (0)