summaryrefslogtreecommitdiffstats
path: root/nextcloud-defaults.inc
diff options
context:
space:
mode:
authorJames Hogarth <james.hogarth@gmail.com>2017-02-21 14:30:00 +0000
committerJames Hogarth <james.hogarth@gmail.com>2017-02-21 14:30:00 +0000
commit260614d225ad68cf4bb1bc31c2480b2ccd169d56 (patch)
tree50e35459d24d7c7972e5491dd03a19bd3197ce21 /nextcloud-defaults.inc
parent3545d203eaf0f4c0bff942e50004f8785f1cd7b3 (diff)
import of srpm from review
Diffstat (limited to 'nextcloud-defaults.inc')
-rw-r--r--nextcloud-defaults.inc60
1 files changed, 60 insertions, 0 deletions
diff --git a/nextcloud-defaults.inc b/nextcloud-defaults.inc
new file mode 100644
index 0000000..06f088f
--- /dev/null
+++ b/nextcloud-defaults.inc
@@ -0,0 +1,60 @@
+# These are based on the .htaccess file shipped by ownCloud, with
+# appropriate adjustments for distribution packaging. Some directives
+# that are irrelevant to the Fedora/EPEL ecosystem are omitted. This
+# file contains directives that should be applied within the /nextcloud
+# filesystem; directives that should be applied site-wide when
+# ownCloud is installed are placed directly in nextcloud.conf.
+#
+# DO NOT EDIT THIS FILE DIRECTLY. To override any element of the
+# packaged ownCloud configuration, create a new /etc/httpd/conf.d/
+# file which will be read later than 'nextcloud.conf'.
+
+AllowOverride None
+
+ErrorDocument 403 /nextcloud/core/templates/403.php
+ErrorDocument 404 /nextcloud/core/templates/404.php
+
+<IfModule mod_fcgid.c>
+ <IfModule mod_setenvif.c>
+ <IfModule mod_headers.c>
+ SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
+ RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
+ </IfModule>
+ </IfModule>
+</IfModule>
+
+<IfModule mod_php5.c>
+ php_value upload_max_filesize 10G
+ php_value post_max_size 10G
+ php_value memory_limit 512M
+ php_value mbstring.func_overload 0
+ php_value always_populate_raw_post_data -1
+ php_value default_charset 'UTF-8'
+ php_value output_buffering off
+ <IfModule mod_env.c>
+ SetEnv htaccessWorking true
+ </IfModule>
+</IfModule>
+
+# The rewrites for legacy caldav and carddav URLs are omitted here
+# because they do not work with Fedora's ownCloud directory layout.
+# See https://github.com/nextcloud/core/issues/243#issuecomment-75426453
+<IfModule mod_rewrite.c>
+ RewriteEngine on
+ RewriteBase /nextcloud/
+ RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
+ RewriteRule ^remote/(.*) remote.php [QSA,L]
+</IfModule>
+
+AddDefaultCharset utf-8
+Options -Indexes
+
+<IfModule pagespeed_module>
+ ModPagespeed Off
+</IfModule>
+
+<IfModule mod_headers.c>
+ <FilesMatch "\.(css|js)$">
+ Header set Cache-Control "max-age=7200, public"
+ </FilesMatch>
+</IfModule>