Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung | |||
| dienste:bytecluster0002:cloud [07.03.2025 23:16] – Fix link mape2k | dienste: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 |
| - 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 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 | ||