Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| dienste:bytecluster0002:cloud [05.08.2023 14:20] – mape2k | dienste:bytecluster0002:cloud [07.03.2025 23:54] (aktuell) – Update config for Nextcloud mape2k | ||
|---|---|---|---|
| Zeile 25: | Zeile 25: | ||
| * Should the "occ upgrade" | * Should the "occ upgrade" | ||
| * Keep maintenance mode active? [y/N] **n** | * Keep maintenance mode active? [y/N] **n** | ||
| - | - In Nextcloud einloggen und unter [[https:// | + | - In Nextcloud einloggen und unter [[https:// |
| * Dein Web-Server ist nicht richtig eingerichtet um "/ | * Dein Web-Server ist nicht richtig eingerichtet um "/ | ||
| * Dein Web-Server ist nicht richtig eingerichtet um "/ | * Dein Web-Server ist nicht richtig eingerichtet um "/ | ||
| 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 |
| - Default-Konfiguration anpassen< | - Default-Konfiguration anpassen< | ||
| server { | server { | ||
| Zeile 113: | Zeile 113: | ||
| try_files $uri $uri/ =404; | try_files $uri $uri/ =404; | ||
| } | } | ||
| - | + | ||
| + | # Add mime tye | ||
| + | types { | ||
| + | application/ | ||
| + | } | ||
| + | |||
| + | # Rule borrowed from `.htaccess` to handle Microsoft DAV clients | ||
| + | location = / { | ||
| + | if ( $http_user_agent ~ ^DavClnt ) { | ||
| + | return 302 / | ||
| + | } | ||
| + | } | ||
| + | |||
| + | location = /robots.txt { | ||
| + | allow all; | ||
| + | log_not_found off; | ||
| + | access_log off; | ||
| + | } | ||
| + | |||
| + | # Make a regex exception for `/ | ||
| + | # access it despite the existence of the regex rule | ||
| + | # `location ~ / | ||
| + | # for `/ | ||
| + | location ^~ / | ||
| + | # The rules in this block are an adaptation of the rules | ||
| + | # in `.htaccess` that concern `/ | ||
| + | |||
| + | location = / | ||
| + | location = / | ||
| + | |||
| + | location / | ||
| + | location / | ||
| + | |||
| + | # Let Nextcloud' | ||
| + | # requests by passing them to the front-end controller. | ||
| + | return 301 / | ||
| + | } | ||
| # Rules borrowed from `.htaccess` to hide certain paths from clients | # Rules borrowed from `.htaccess` to hide certain paths from clients | ||
| location ~ ^/ | location ~ ^/ | ||
| Zeile 136: | Zeile 173: | ||
| fastcgi_param front_controller_active true; # Enable pretty urls | fastcgi_param front_controller_active true; # Enable pretty urls | ||
| # | # | ||
| - | fastcgi_pass unix:/ | + | fastcgi_pass unix:/ |
| fastcgi_intercept_errors on; | fastcgi_intercept_errors on; | ||
| 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 | ||
| </ | </ | ||
| - Dienste aktivieren und neustarten | - Dienste aktivieren und neustarten | ||