Uploading large files can take a very long time. If the process takes longer than the configured timeout in Apache, it will be aborted and the client will receive an HTTP 504 Gateway Timeout error. Increasing the timeout will help alleviate this for files up to a certain size. Notably, it now lets me upload Signal backups without errors.
63 lines
1.9 KiB
Django/Jinja
63 lines
1.9 KiB
Django/Jinja
RewriteEngine On
|
|
RewriteCond %{HTTPS} !on
|
|
RewriteRule /.* https://%{SERVER_NAME}$0
|
|
|
|
Header always set \
|
|
Strict-Transport-Security "max-age=63072000; includeSubDomains"
|
|
|
|
Timeout 600
|
|
|
|
DocumentRoot /usr/share/nextcloud
|
|
<Directory /usr/share/nextcloud>
|
|
Require all granted
|
|
AllowOverride All
|
|
Options FollowSymLinks MultiViews
|
|
|
|
<IfModule mod_dav.c>
|
|
Dav off
|
|
</IfModule>
|
|
|
|
<IfModule mod_rewrite.c>
|
|
Options -MultiViews
|
|
RewriteRule ^core/js/oc.js$ index.php [PT,E=PATH_INFO:$1]
|
|
RewriteRule ^core/preview.png$ index.php [PT,E=PATH_INFO:$1]
|
|
RewriteCond %{REQUEST_FILENAME} !\.(css|js|svg|gif|png|html|ttf|woff2?|ico|jpg|jpeg|map|webm|mp4)$
|
|
RewriteCond %{REQUEST_FILENAME} !core/img/favicon.ico$
|
|
RewriteCond %{REQUEST_FILENAME} !core/img/manifest.json$
|
|
RewriteCond %{REQUEST_FILENAME} !/remote.php
|
|
RewriteCond %{REQUEST_FILENAME} !/public.php
|
|
RewriteCond %{REQUEST_FILENAME} !/cron.php
|
|
RewriteCond %{REQUEST_FILENAME} !/core/ajax/update.php
|
|
RewriteCond %{REQUEST_FILENAME} !/status.php
|
|
RewriteCond %{REQUEST_FILENAME} !/ocs/v1.php
|
|
RewriteCond %{REQUEST_FILENAME} !/ocs/v2.php
|
|
RewriteCond %{REQUEST_FILENAME} !/robots.txt
|
|
RewriteCond %{REQUEST_FILENAME} !/updater/
|
|
RewriteCond %{REQUEST_FILENAME} !/ocs-provider/
|
|
RewriteCond %{REQUEST_FILENAME} !/ocm-provider/
|
|
RewriteCond %{REQUEST_URI} !^/\.well-known/(acme-challenge|pki-validation)/.*
|
|
RewriteRule . index.php [PT,E=PATH_INFO:$1]
|
|
RewriteBase /
|
|
<IfModule mod_env.c>
|
|
SetEnv front_controller_active true
|
|
<IfModule mod_dir.c>
|
|
DirectorySlash off
|
|
</IfModule>
|
|
</IfModule>
|
|
</IfModule>
|
|
</Directory>
|
|
|
|
Alias /apps-appstore /var/lib/nextcloud/apps
|
|
Alias /custom_apps /var/lib/nextcloud/apps
|
|
|
|
<Directory /var/lib/nextcloud/apps/>
|
|
Require all granted
|
|
</Directory>
|
|
<Directory /var/lib/nextcloud/data/>
|
|
Require all granted
|
|
</Directory>
|
|
|
|
Redirect 301 /.well-known/carddav /remote.php/carddav
|
|
Redirect 301 /.well-known/caldav /remote.php/caldav
|
|
Redirect 301 /.well-known/webdav /remote.php/webdav
|