Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
7f01146c
Commit
7f01146c
authored
Aug 11, 2014
by
jkaberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable large file uploads in nginx
parent
54fe9261
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
nginx.conf
conf/nginx.conf
+6
-2
No files found.
conf/nginx.conf
View file @
7f01146c
...
@@ -26,13 +26,12 @@ server {
...
@@ -26,13 +26,12 @@ server {
ssl_certificate_key
$SSL_KEY
;
ssl_certificate_key
$SSL_KEY
;
include
/etc/nginx/nginx-ssl.conf
;
include
/etc/nginx/nginx-ssl.conf
;
# Expose this directory as static files.
# TODO: This is bad, we shouldnt hack it like this.
# TODO: This is bad, we shouldnt hack it like this.
root
/usr/local/lib/owncloud
;
;
root
/usr/local/lib/owncloud
;
;
index
index.html
index.htm
;
index
index.html
index.htm
;
# ownCloud configuration
# ownCloud configuration
client_max_body_size
1
0
G
;
# set max upload size
client_max_body_size
1
6
G
;
# set max upload size
fastcgi_buffers
64
4K
;
fastcgi_buffers
64
4K
;
rewrite
^/caldav(.*)
$
/remote.php/caldav
$1
redirect
;
rewrite
^/caldav(.*)
$
/remote.php/caldav
$1
redirect
;
...
@@ -69,6 +68,11 @@ server {
...
@@ -69,6 +68,11 @@ server {
location
~
^(.+?\.php)(/.*)?$
{
location
~
^(.+?\.php)(/.*)?$
{
try_files
$1
=
404
;
try_files
$1
=
404
;
# PHP specific configuration to deal with large file uploads
fastcgi_param
PHP_VALUE
"upload_max_filesize
=
16G
"
;
fastcgi_param
PHP_VALUE
"post_max_size
=
16G
"
;
fastcgi_param
PHP_VALUE
"output_buffering
=
16384
"
;
include
fastcgi_params
;
include
fastcgi_params
;
fastcgi_param
SCRIPT_FILENAME
$document_root$1
;
fastcgi_param
SCRIPT_FILENAME
$document_root$1
;
fastcgi_param
PATH_INFO
$2
;
fastcgi_param
PATH_INFO
$2
;
...
...
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