Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
vidjil
vidjil
Commits
d95e2bc7
Commit
d95e2bc7
authored
Apr 13, 2015
by
Mikaël Salson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nginx_install: Raise threshold to allow huge uploads
parent
223524d5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
server/nginx_install.sh
server/nginx_install.sh
+4
-1
No files found.
server/nginx_install.sh
View file @
d95e2bc7
...
@@ -101,6 +101,7 @@ echo "server {
...
@@ -101,6 +101,7 @@ echo "server {
uwsgi_param UWSGI_SCHEME
\$
scheme;
uwsgi_param UWSGI_SCHEME
\$
scheme;
uwsgi_param SERVER_SOFTWARE nginx/
\$
nginx_version;
uwsgi_param SERVER_SOFTWARE nginx/
\$
nginx_version;
proxy_read_timeout 600;
###remove the comments to turn on if you want gzip compression of your pages
###remove the comments to turn on if you want gzip compression of your pages
include /etc/nginx/conf.d/web2py/gzip.conf;
include /etc/nginx/conf.d/web2py/gzip.conf;
### end gzip section
### end gzip section
...
@@ -144,6 +145,7 @@ server {
...
@@ -144,6 +145,7 @@ server {
# include /etc/nginx/conf.d/web2py/gzip.conf;
# include /etc/nginx/conf.d/web2py/gzip.conf;
### end gzip section
### end gzip section
proxy_read_timeout 600;
client_max_body_size 20G;
client_max_body_size 20G;
###
###
}
}
...
@@ -180,7 +182,7 @@ pythonpath = $CWD/web2py/
...
@@ -180,7 +182,7 @@ pythonpath = $CWD/web2py/
mount = /=wsgihandler:application
mount = /=wsgihandler:application
processes = 4
processes = 4
master = true
master = true
harakiri =
6
0
harakiri =
120
0
reload-mercy = 8
reload-mercy = 8
cpu-affinity = 1
cpu-affinity = 1
stats = /tmp/stats.socket
stats = /tmp/stats.socket
...
@@ -192,6 +194,7 @@ uid = www-data
...
@@ -192,6 +194,7 @@ uid = www-data
gid = www-data
gid = www-data
cron = 0 0 -1 -1 -1 python
$CWD
/web2py/web2py.py -Q -S welcome -M -R scripts/sessions2trash.py -A -o
cron = 0 0 -1 -1 -1 python
$CWD
/web2py/web2py.py -Q -S welcome -M -R scripts/sessions2trash.py -A -o
no-orphans = true
no-orphans = true
ignore-sigpipe = true
"
>
/etc/uwsgi/web2py.ini
"
>
/etc/uwsgi/web2py.ini
#Create a configuration file for uwsgi in emperor-mode
#Create a configuration file for uwsgi in emperor-mode
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment