AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Nextcloud 504 gateway time out1/19/2024 ![]() ![]() # to the URI, resulting in a HTTP 500 error response. # then Nginx will encounter an infinite rewriting loop when it prepends `/index.php` # which handle static assets (as seen below). # Ensure this block, which passes PHP files to the PHP process, is above the blocks # in `.htaccess` that concern `/.well-known`. # The rules in this block are an adaptation of the rules # `location ~ /(\.|autotest|.)` which would otherwise handle requests # access it despite the existence of the regex rule # Make a regex exception for `/.well-known` so that clients can still Return 302 /remote.php/webdav/$is_args$args # Rule borrowed from `.htaccess` to handle Microsoft DAV clients Index index.php index.html /index.php$request_uri # `try_files $uri $uri/ /index.php$request_uri` # `/updater`, `/ocm-provider`, `/ocs-provider`), and thus # to specify custom rules for certain paths (e.g. This consistent behaviour means that we don't need # that file is correctly served if it doesn't, then the request is passed to In particular, if that directory contains an index.php file, # when a client requests a path that corresponds to a directory that exists # here as the fallback means that Nginx always exhibits the desired behaviour # Specify how to handle directories - specifying `/index.php$request_uri` # Remove X-Powered-By, which is an information leak # HTTP response headers borrowed from Nextcloud `.htaccess`Īdd_header Referrer-Policy "no-referrer" always Īdd_header X-Content-Type-Options "nosniff" always Īdd_header X-Download-Options "noopen" always Īdd_header X-Frame-Options "SAMEORIGIN" always Īdd_header X-Permitted-Cross-Domain-Policies "none" always Īdd_header X-Robots-Tag "noindex, nofollow" always Īdd_header X-XSS-Protection "1 mode=block" always # with the `ngx_pagespeed` module, uncomment this line to disable it. # Pagespeed is not supported by Nextcloud, so if your server is built ![]() Gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/ text/vtt text/x-component text/x-cross-domain-policy Gzip_proxied expired no-cache no-store private no_last_modified no_etag auth # Enable gzip but do not remove ETag headers # Versuch Error 504 zu lösen, Body Size und Timeout erhöht #add_header Strict-Transport-Security "max-age=15768000 includeSubDomains preload " always # in all major browsers and getting removed from this list # will add the domain to a hardcoded list that is shipped # WARNING: Only add the preload option once you read about '"$http_user_agent" "$http_x_forwarded_for"' Īccess_log /var/log/nginx/access.log main '$status $body_bytes_sent "$http_referer" ' Log_format main '$remote_addr - $remote_user "$request" ' '' => '/var/www/html/custom_apps/memories/exiftool-bin/go-vod-amd64', 'memories.exiftool' => '/var/www/html/custom_apps/memories/exiftool-bin/exiftool-amd64-glibc', thumb Generation Empfehlung Memories Doku 'memcache.locking' => '\\OC\\Memcache\\Redis', 'memcache.distributed' => '\\OC\\Memcache\\Redis', The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!): '\\OC\\Memcache\\APCu', ![]() The output of your Nextcloud log in Admin > Logging: No Errors in the Log The Windows Desktop Client works with smal files ( 500MB Operating system and version (eg, Ubuntu 20.04): OMV6 aka debnian 11Īpache or nginx version (eg, Apache 2.4.25): nginx ![]()
0 Comments
Read More
Leave a Reply. |