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
d03bc0ce
Commit
d03bc0ce
authored
Aug 13, 2014
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more owncloud configuration tweaks
parent
05cc63b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
nginx.conf
conf/nginx.conf
+5
-3
owncloud.sh
setup/owncloud.sh
+4
-4
No files found.
conf/nginx.conf
View file @
d03bc0ce
...
@@ -46,9 +46,6 @@ server {
...
@@ -46,9 +46,6 @@ server {
}
}
# ownCloud configuration.
# ownCloud configuration.
rewrite
^/caldav(.*)
$
/cloud/remote.php/caldav
$1
redirect
;
rewrite
^/carddav(.*)
$
/cloud/remote.php/carddav
$1
redirect
;
rewrite
^/webdav(.*)
$
/cloud/remote.php/webdav
$1
redirect
;
rewrite
^/cloud
$
/cloud/
redirect
;
rewrite
^/cloud
$
/cloud/
redirect
;
rewrite
^/cloud/
$
/cloud/index.php
;
rewrite
^/cloud/
$
/cloud/index.php
;
rewrite
^(/cloud/core/doc/[^
\
/]+/
)
$
$1
/index.html
;
rewrite
^(/cloud/core/doc/[^
\
/]+/
)
$
$1
/index.html
;
...
@@ -71,6 +68,11 @@ server {
...
@@ -71,6 +68,11 @@ server {
client_max_body_size
1G
;
client_max_body_size
1G
;
fastcgi_buffers
64
4K
;
fastcgi_buffers
64
4K
;
}
}
location
~
^/((caldav|carddav|webdav).*)$
{
# Z-Push doesn't like getting a redirect, and a plain rewrite didn't work either.
# Properly proxying like this seems to work fine.
proxy_pass
https://
$HOSTNAME
/cloud/remote.php/
$1
;
}
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
;
...
...
setup/owncloud.sh
View file @
d03bc0ce
...
@@ -93,16 +93,16 @@ fi
...
@@ -93,16 +93,16 @@ fi
curl
-sS
https://getcomposer.org/installer | php
--
--install-dir
=
/usr/local/lib/owncloud/apps/mail
curl
-sS
https://getcomposer.org/installer | php
--
--install-dir
=
/usr/local/lib/owncloud/apps/mail
php /usr/local/lib/owncloud/apps/mail/composer.phar
install
--working-dir
=
/usr/local/lib/owncloud/apps/mail
php /usr/local/lib/owncloud/apps/mail/composer.phar
install
--working-dir
=
/usr/local/lib/owncloud/apps/mail
chmod
-R
777 /usr/local/lib/owncloud/apps/mail/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer
chmod
-R
777 /usr/local/lib/owncloud/apps/mail/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer
chown
-R
www-data.www-data /usr/local/lib/owncloud/apps/mail/
# Use Crontab instead of AJAX/webcron in ownCloud
# Use Crontab instead of AJAX/webcron in ownCloud
# TODO: somehow change the cron option in ownClouds config, not exposed afaik?
# TODO: somehow change the cron option in ownClouds config, not exposed afaik?
(
crontab
-u
www-data
-l
;
echo
"*/15 * * * * php -f /usr/local/lib/owncloud/cron.php"
)
| crontab
-u
www-data -
(
crontab
-u
www-data
-l
;
echo
"*/15 * * * * php -f /usr/local/lib/owncloud/cron.php"
)
| crontab
-u
www-data -
# Enable apps.
# This seems to need to be disabled or things just don't work right. Josh gets an empty modal box and can't use the site.
hide_output php /usr/local/lib/owncloud/console.php app:enable user_external
hide_output php /usr/local/lib/owncloud/console.php app:disable firstrunwizard
hide_output php /usr/local/lib/owncloud/console.php app:enable mail
# Enable apps.
# Enable apps.
These don't seem to work until after the administrator account is created, which we haven't done here.
hide_output php /usr/local/lib/owncloud/console.php app:enable user_external
hide_output php /usr/local/lib/owncloud/console.php app:enable user_external
hide_output php /usr/local/lib/owncloud/console.php app:enable mail
hide_output php /usr/local/lib/owncloud/console.php app:enable mail
...
...
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