dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #16674
[Branch ~dhis2-documenters/dhis2/dhis2-docbook-docs] Rev 488: Added max upload size to nginx config
------------------------------------------------------------
revno: 488
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2-docbook-docs
timestamp: Tue 2012-03-27 14:59:43 +0200
message:
Added max upload size to nginx config
modified:
src/docbkx/en/dhis2_implementation_guide_installation.xml
--
lp:~dhis2-documenters/dhis2/dhis2-docbook-docs
https://code.launchpad.net/~dhis2-documenters/dhis2/dhis2-docbook-docs
Your team DHIS 2 developers is subscribed to branch lp:~dhis2-documenters/dhis2/dhis2-docbook-docs.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-documenters/dhis2/dhis2-docbook-docs/+edit-subscription
=== modified file 'src/docbkx/en/dhis2_implementation_guide_installation.xml'
--- src/docbkx/en/dhis2_implementation_guide_installation.xml 2012-03-22 14:41:39 +0000
+++ src/docbkx/en/dhis2_implementation_guide_installation.xml 2012-03-27 12:59:43 +0000
@@ -94,7 +94,8 @@
<para><code>sudo nano /usr/local/nginx/conf/nginx.conf</code></para>
<para>nginx configuration is built around a hierarchy of blocks representing http, server and location, where each block inherit settings from parent blocks. The following snippet will configure nginx to proxy pass (redirect) requests from port 80 (which is the port nginx will listen on by default) to our Tomcat instance. It will also make nginx serve requests for static content such as javascript, stylesheets and images and instruct clients to cache it for 4 days which will reduce the load on Tomcat and improve overall performance. Include the following configuration in nginx.conf:</para>
<para><screen><![CDATA[server {
- listen 80;
+ listen 80;
+ client_max_body_size 10M; # Default 1M, change it!
# Serve static content
# Root points to your DHIS webapp location, update it!
@@ -132,7 +133,8 @@
# SSL server block
server {
- listen 443;
+ listen 443;
+ client_max_body_size 10M;
ssl on;
ssl_certificate server.crt;