***Please note: The max file upload size is 30MB (Nginx). Clients who need to upload files anywhere near that size; we recommend to use a service like Dropbox or AWS buckets and reference the file.

As of Tendenci 5.0 and later versions, they are typically run as python applications using wsgi and proxied through an application called nginx. Although the default location for the nginx.conf file per the docs is different, on a Tendenci default Ubuntu install on Amazon it is located at


Note at the end of the file it loads a file for each of your wsgi applications. On line 67 of the current file it shows alternate locations of site nginx.conf files.

        # Virtual Host Configs

        include /etc/nginx/conf.d/*.conf;
        include /etc/nginx/sites-enabled/*;

If I "Ctl-X" and then "N" to not save my changes to the main nginx.conf file, I then "CD sites-enabled". Note that there is also a "sites-available" folder which is a sym link to sites-enabled so just go to the source. In this case I 

cd ..
cd /etc/nginx/sites-enabled
sudo nano mayan
[sudo] password for schipul:

In nano I scrolled down to line 6 of 25, which you can tell in Nano by typing "Ctl-C" which tells you your current line number. I added the following line to the "server" portion of the document at the top to allow up to 10 meg uploads:

client_max_body_size 10m;

At this point my entire file reads as follows:

server {
    listen 80;
    server_name docs.tendenciapp.net mayan.tendenciapp.net docs.tendenci.me may$
    server_name_in_redirect off;
    root /home/schipul/mayan/mayan/;
    client_max_body_size 10m;

    location /static/ {
        root 'static';

    location /media/ {
        root 'media';

    location /mayan-static {
        alias /home/schipul/mayan/mayan/static;

Side note - some helpful notes about using NANO at a shell prompt.

  1. Ctl-C will tell you the line number and column location of your cursor. This is very helpful to communicate "on line 34 of nginx.conf it specifies the error_log location" for example.

Helpful links for further research on nginx config and file sizes for upload:

  1. http://wiki.nginx.org/HttpCoreModule#client_max_body_size
  2. http://www.tuxradar.com/content/text-editing-nano-made-easy
  3. http://www.siteground.com/tutorials/ssh/ssh_searching.htm
  4. http://blog.martinfjordvald.com/2010/07/nginx-primer/
  5. https://serverfault.com/questions/277738/limit-upload-file-size-and-redirect-user-to-error-page-if-limit-exceeds


Contact us to upgrade to Tendenci

The open source solution chosen by associations around the world.

Want to talk? (281) 497-6567

Sign up for Tendenci - The Open Source AMS

No per user pricing. Unlimited admins.

Demo Now

Have Questions?

Contact us!

Site Search