diff --git a/conf/nginx.conf b/conf/nginx.conf index 5022a9e..2d9041b 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,6 +1,9 @@ #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; location __PATH__/ { + # Set max upload size + client_max_body_size 50m; + proxy_pass http://localhost:__PORT__; # The port must match the value of SHARELATEX_PORT. proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; @@ -29,6 +32,10 @@ location __PATH__/socket.io/ { } location __PATH__/stylesheets/ { + + # Set max upload size + client_max_body_size 50m; + alias __INSTALL_DIR__/live/services/web/public/stylesheets/; expires 1y; }