Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
ports:web:nextcloud [2023/05/22 22:06] – [php] david | ports:web:nextcloud [2024/01/16 22:09] (Version actuelle) – [php] zorro | ||
---|---|---|---|
Ligne 51: | Ligne 51: | ||
Après avoir configuré votre nom de domaine et installé des clefs //https//, configurez le serveur web comme suit: | Après avoir configuré votre nom de domaine et installé des clefs //https//, configurez le serveur web comme suit: | ||
- | <file nginx [highlight_lines_extra=" | + | <file nginx [highlight_lines_extra=" |
upstream php-handler { | upstream php-handler { | ||
server unix:/ | server unix:/ | ||
Ligne 66: | Ligne 66: | ||
listen 80; | listen 80; | ||
listen [::]:80; | listen [::]:80; | ||
- | server_name cloud.chezmpi.eu; | + | server_name cloud.chezmoi.eu; |
# Prevent nginx HTTP Server Detection | # Prevent nginx HTTP Server Detection | ||
Ligne 81: | Ligne 81: | ||
# Path to the root of your installation | # Path to the root of your installation | ||
- | | + | |
+ | set $www_next | ||
+ | root $jail_path$www_next; | ||
# Use Mozilla' | # Use Mozilla' | ||
- | # https:// | + | # https:// |
- | ssl_certificate | + | ssl_certificate |
- | ssl_certificate_key | + | ssl_certificate_key /etc/ssl/nginx/cloud.example.com.key; |
# Prevent nginx HTTP Server Detection | # Prevent nginx HTTP Server Detection | ||
Ligne 110: | Ligne 112: | ||
gzip_min_length 256; | gzip_min_length 256; | ||
gzip_proxied expired no-cache no-store private no_last_modified no_etag auth; | gzip_proxied expired no-cache no-store private no_last_modified no_etag auth; | ||
- | gzip_types application/ | + | gzip_types application/ |
# Pagespeed is not supported by Nextcloud, so if your server is built | # Pagespeed is not supported by Nextcloud, so if your server is built | ||
Ligne 133: | Ligne 135: | ||
# Remove X-Powered-By, | # Remove X-Powered-By, | ||
fastcgi_hide_header X-Powered-By; | fastcgi_hide_header X-Powered-By; | ||
+ | |||
+ | # Add .mjs as a file extension for javascript | ||
+ | # Either include it in the default mime.types list | ||
+ | # or include you can include that list explicitly and add the file extension | ||
+ | # only for Nextcloud like below: | ||
+ | # include mime.types; | ||
+ | types { | ||
+ | text/ | ||
+ | } | ||
# Specify how to handle directories -- specifying `/ | # Specify how to handle directories -- specifying `/ | ||
Ligne 196: | Ligne 207: | ||
include fastcgi_params; | include fastcgi_params; | ||
- | | + | # |
+ | fastcgi_param SCRIPT_FILENAME $www_next/ | ||
fastcgi_param PATH_INFO $path_info; | fastcgi_param PATH_INFO $path_info; | ||
fastcgi_param HTTPS on; | fastcgi_param HTTPS on; | ||
Ligne 210: | Ligne 222: | ||
} | } | ||
- | location ~ \.(?: | + | |
+ | | ||
try_files $uri / | try_files $uri / | ||
add_header Cache-Control " | add_header Cache-Control " | ||
Ligne 335: | Ligne 348: | ||
Créez une entrée pour cron(8): | Créez une entrée pour cron(8): | ||
- | <code bash [highlight_lines_extra=" | + | <code bash [highlight_lines_extra=" |
crontab -u www -e | crontab -u www -e | ||
crontab -u www -l | crontab -u www -l | ||
SHELL=/ | SHELL=/ | ||
PATH=/ | PATH=/ | ||
+ | MAILTO=patron@cloud.lapinbilly.eu | ||
*/5 * * * * / | */5 * * * * / | ||
</ | </ | ||
+ | La variable '' | ||
+ | Si vous voulez éviter ça, choisissez '' | ||
===== Configurer ===== | ===== Configurer ===== | ||