dienste:bytecluster0002:cloud

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
dienste:bytecluster0002:cloud [07.03.2025 23:16] – Fix link mape2kdienste:bytecluster0002:cloud [07.03.2025 23:54] (aktuell) – Update config for Nextcloud mape2k
Zeile 46: Zeile 46:
  
   - NGINX und PHP-FPM installieren   - NGINX und PHP-FPM installieren
-    * **sudo apt-get install php8.2 php8.2-cli php8.2-fpm php8.2-curl php8.2-gd php8.2-xml php8.2-mbstring php8.2-zip php8.2-mysql php8.2-bz2 php8.2-intl php8.2-bcmath php8.2-gmp php-imagick nginx**+    * **sudo apt-get install php8.2 php8.2-cli php8.2-fpm php8.2-curl php8.2-gd php8.2-xml php8.2-mbstring php8.2-zip php8.2-mysql php8.2-bz2 php8.2-intl php8.2-bcmath php8.2-gmp php-imagick libmagickcore-6.q16-6-extra nginx**
   - Default-Konfiguration anpassen<file|/etc/nginx/sites-available/default>   - Default-Konfiguration anpassen<file|/etc/nginx/sites-available/default>
 server { server {
Zeile 113: Zeile 113:
             try_files $uri $uri/ =404;             try_files $uri $uri/ =404;
         }         }
- + 
 +        # Add mime tye 
 +        types { 
 +            application/javascript mjs; 
 +        } 
 + 
 +        # Rule borrowed from `.htaccess` to handle Microsoft DAV clients 
 +        location = / { 
 +            if ( $http_user_agent ~ ^DavClnt ) { 
 +                return 302 /remote.php/webdav/$is_args$args; 
 +            } 
 +        } 
 + 
 +        location = /robots.txt { 
 +            allow all; 
 +            log_not_found off; 
 +            access_log off; 
 +        } 
 + 
 +        # Make a regex exception for `/.well-known` so that clients can still 
 +        # access it despite the existence of the regex rule 
 +        # `location ~ /(\.|autotest|...)` which would otherwise handle requests 
 +        # for `/.well-known`. 
 +        location ^~ /.well-known { 
 +            # The rules in this block are an adaptation of the rules 
 +            # in `.htaccess` that concern `/.well-known`. 
 + 
 +            location = /.well-known/carddav { return 301 /remote.php/dav/;
 +            location = /.well-known/caldav  { return 301 /remote.php/dav/;
 + 
 +            location /.well-known/acme-challenge    { try_files $uri $uri/ =404; } 
 +            location /.well-known/pki-validation    { try_files $uri $uri/ =404; } 
 + 
 +            # Let Nextcloud's API for `/.well-known` URIs handle all other 
 +            # requests by passing them to the front-end controller. 
 +            return 301 /index.php$request_uri; 
 +        } 
         # Rules borrowed from `.htaccess` to hide certain paths from clients         # Rules borrowed from `.htaccess` to hide certain paths from clients
         location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)(?:$|/ { return 404; }         location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)(?:$|/ { return 404; }
Zeile 179: Zeile 216:
 post_max_size = 512M post_max_size = 512M
 upload_max_filesize = 512M upload_max_filesize = 512M
 +opcache.interned_strings_buffer = 128
 </file> </file>
   - Dienste aktivieren und neustarten   - Dienste aktivieren und neustarten
  • dienste/bytecluster0002/cloud.1741389391.txt.gz
  • Zuletzt geändert: 07.03.2025 23:16
  • von mape2k