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
5ecbaa2b
Commit
5ecbaa2b
authored
Aug 15, 2014
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'owncloud' of github.com:jkaberg/mailinabox into owncloud
parents
a10b828d
59c1c670
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
nginx.conf
conf/nginx.conf
+15
-1
owncloud.sh
setup/owncloud.sh
+3
-1
No files found.
conf/nginx.conf
View file @
5ecbaa2b
...
@@ -31,10 +31,12 @@ server {
...
@@ -31,10 +31,12 @@ server {
index
index.php
;
index
index.php
;
alias
/usr/local/lib/roundcubemail/
;
alias
/usr/local/lib/roundcubemail/
;
}
}
location
~
/mail/config/.*
{
location
~
/mail/config/.*
{
# A ~-style location is needed to give this precedence over the next block.
# A ~-style location is needed to give this precedence over the next block.
return
403
;
return
403
;
}
}
location
~
/mail/.*\.php
{
location
~
/mail/.*\.php
{
# note: ~ has precendence over a regular location block
# note: ~ has precendence over a regular location block
include
fastcgi_params
;
include
fastcgi_params
;
...
@@ -55,6 +57,7 @@ server {
...
@@ -55,6 +57,7 @@ server {
deny
all
;
deny
all
;
}
}
}
}
location
~
^(/cloud)(/.+\.php)(/.*)?$
{
location
~
^(/cloud)(/.+\.php)(/.*)?$
{
# note: ~ has precendence over a regular location block
# note: ~ has precendence over a regular location block
include
fastcgi_params
;
include
fastcgi_params
;
...
@@ -62,17 +65,27 @@ server {
...
@@ -62,17 +65,27 @@ server {
fastcgi_param
SCRIPT_NAME
$1$2
;
fastcgi_param
SCRIPT_NAME
$1$2
;
fastcgi_param
PATH_INFO
$3
;
fastcgi_param
PATH_INFO
$3
;
fastcgi_param
MOD_X_ACCEL_REDIRECT_ENABLED
on
;
fastcgi_param
MOD_X_ACCEL_REDIRECT_ENABLED
on
;
fastcgi_read_timeout
630
;
fastcgi_pass
php-fpm
;
fastcgi_pass
php-fpm
;
error_page
403
/cloud/core/templates/403.php
;
error_page
403
/cloud/core/templates/403.php
;
error_page
404
/cloud/core/templates/404.php
;
error_page
404
/cloud/core/templates/404.php
;
client_max_body_size
1G
;
client_max_body_size
1G
;
fastcgi_buffers
64
4K
;
fastcgi_buffers
64
4K
;
}
}
location
~
^/((caldav|carddav|webdav).*)$
{
location
~
^/((caldav|carddav|webdav).*)$
{
# Z-Push doesn't like getting a redirect, and a plain rewrite didn't work either.
# Z-Push doesn't like getting a redirect, and a plain rewrite didn't work either.
# Properly proxying like this seems to work fine.
# Properly proxying like this seems to work fine.
proxy_pass
https://
$HOSTNAME
/cloud/remote.php/
$1
;
proxy_pass
https://
$HOSTNAME
/cloud/remote.php/
$1
;
}
}
# location ^~ /cloud/data {
# internal;
# # Set 'alias' if not using the default 'datadirectory'
# # TODO: Since this is auto generated, we need a better approach!
# alias /home/user-data/owncloud;
# }
rewrite
^/.well-known/host-meta
/cloud/public.php?service=host-meta
last
;
rewrite
^/.well-known/host-meta
/cloud/public.php?service=host-meta
last
;
rewrite
^/.well-known/host-meta.json
/cloud/public.php?service=host-meta-json
last
;
rewrite
^/.well-known/host-meta.json
/cloud/public.php?service=host-meta-json
last
;
rewrite
^/.well-known/carddav
/cloud/remote.php/carddav/
redirect
;
rewrite
^/.well-known/carddav
/cloud/remote.php/carddav/
redirect
;
...
@@ -94,8 +107,9 @@ server {
...
@@ -94,8 +107,9 @@ server {
# Z-Push (Microsoft Exchange ActiveSync)
# Z-Push (Microsoft Exchange ActiveSync)
location
/Microsoft-Server-ActiveSync
{
location
/Microsoft-Server-ActiveSync
{
include
/etc/nginx/fastcgi_params
;
include
/etc/nginx/fastcgi_params
;
fastcgi_param
SCRIPT_FILENAME
/usr/local/lib/z-push/index.php
;
fastcgi_param
SCRIPT_FILENAME
/usr/local/lib/z-push/index.php
;
fastcgi_read_timeout
630
;
fastcgi_pass
php-fpm
;
fastcgi_pass
php-fpm
;
}
}
...
...
setup/owncloud.sh
View file @
5ecbaa2b
...
@@ -79,7 +79,9 @@ tools/editconf.py /etc/php5/fpm/php.ini -c ';' \
...
@@ -79,7 +79,9 @@ tools/editconf.py /etc/php5/fpm/php.ini -c ';' \
upload_max_filesize
=
16G
\
upload_max_filesize
=
16G
\
post_max_size
=
16G
\
post_max_size
=
16G
\
output_buffering
=
16384
\
output_buffering
=
16384
\
memory_limit
=
512M
memory_limit
=
512M
\
max_execution_time
=
600
\
short_open_tag
=
On
# Download and install the mail app
# Download and install the mail app
# TODO: enable mail app in ownCloud config, not exposed afaik?
# TODO: enable mail app in ownCloud config, not exposed afaik?
...
...
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