forked from linux/WebHosting
WIP increase client_max_body_size to 20M (#47)
uploading attachments I receive frequent errors 413 Request entity too large, nginx client_max_body_size default is 1M - I need more Reviewed-on: linux/WebHosting#47 Reviewed-by: buchel_k <konrad.bucheli@psi.ch> Co-authored-by: flechsig <uwe.flechsig@psi.ch> Co-committed-by: flechsig <uwe.flechsig@psi.ch>
This commit is contained in:
@@ -2,12 +2,14 @@
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
client_max_body_size 20M;
|
||||
server_name opticswiki.psi.ch;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
client_max_body_size 20M;
|
||||
server_name opticswiki.psi.ch;
|
||||
|
||||
ssl_certificate /etc/nginx/certs/opticswiki.psi.ch.crt;
|
||||
|
||||
Reference in New Issue
Block a user