Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions dockerize/sites-enabled/prod-ssl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ server {

access_log /var/log/nginx/access.log;

client_max_body_size 30M;
# Set the maximum body size to 25MB
# When changing this, make sure to also change the
# corresponding value in the PLUGIN_MAX_UPLOAD_SIZE in
# the settings_docker.py file, prod-ssl.conf and staging-ssl.conf
# files.
client_max_body_size 25M;
error_log /var/log/nginx/error.log;

# the port your site will be served on
Expand Down Expand Up @@ -152,7 +157,12 @@ server {

access_log /var/log/nginx/access.log;

client_max_body_size 30M;
# Set the maximum body size to 25MB
# When changing this, make sure to also change the
# corresponding value in the PLUGIN_MAX_UPLOAD_SIZE in
# the settings_docker.py file, prod-ssl.conf and staging-ssl.conf
# files.
client_max_body_size 25M;
error_log /var/log/nginx/error.log;

charset utf-8;
Expand Down
7 changes: 6 additions & 1 deletion dockerize/sites-enabled/prod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ server {

access_log /var/log/nginx/access.log;

client_max_body_size 30M;
# Set the maximum body size to 25MB
# When changing this, make sure to also change the
# corresponding value in the PLUGIN_MAX_UPLOAD_SIZE in
# the settings_docker.py file, prod-ssl.conf and staging-ssl.conf
# files.
client_max_body_size 25M;
error_log /var/log/nginx/error.log;

# the port your site will be served on
Expand Down
17 changes: 14 additions & 3 deletions dockerize/sites-enabled/staging-ssl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ server {
gzip_disable “MSIE [1-6].(?!.*SV1)”;

access_log /var/log/nginx/access.log;

client_max_body_size 30M;

# Set the maximum body size to 25MB
# When changing this, make sure to also change the
# corresponding value in the PLUGIN_MAX_UPLOAD_SIZE in
# the settings_docker.py file, prod-ssl.conf and staging-ssl.conf
# files.
client_max_body_size 25M;
error_log /var/log/nginx/error.log;

# the port your site will be served on
Expand Down Expand Up @@ -152,7 +157,13 @@ server {

access_log /var/log/nginx/access.log;

client_max_body_size 30M;
# Set the maximum body size to 25MB
# When changing this, make sure to also change the
# corresponding value in the PLUGIN_MAX_UPLOAD_SIZE in
# the settings_docker.py file, prod-ssl.conf and staging-ssl.conf
# files.
client_max_body_size 25M;

error_log /var/log/nginx/error.log;

charset utf-8;
Expand Down
6 changes: 6 additions & 0 deletions qgis-app/settings_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,12 @@
# Default primary key type
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'


# Set the maximum PLUGIN_MAX_UPLOAD_SIZE size to 25MB
# When changing this, make sure to also change the
# corresponding value in the "client_max_body_size" in
# the prod-ssl.conf and staging-ssl.conf
# files.
PLUGIN_MAX_UPLOAD_SIZE = os.environ.get("PLUGIN_MAX_UPLOAD_SIZE", 25000000) # Default is 25MB

# RPC2 Max upload size
Expand Down