installation/nextcloud_itopie.md: SVG, .mjs/.wasm, maint, phone authored by Luca Capello's avatar Luca Capello
This fixes <https://odoo.itopie.ch/web#id=281&action=491&active_id=2&model=project.task&view_type=form&cids=1&menu_id=323>.

Thanks to Samuel Chenal <schenal@itopie.ch> for the help.
...@@ -20,7 +20,7 @@ Une version de retard par rapport au [Release Schedule](https://github.com/nextc ...@@ -20,7 +20,7 @@ Une version de retard par rapport au [Release Schedule](https://github.com/nextc
1. Installation des paquets php nécessaires pour Nextcloud \ 1. Installation des paquets php nécessaires pour Nextcloud \
**NB**, pour vérifier les modules installés : `php -m | grep -i <module_name>` **NB**, pour vérifier les modules installés : `php -m | grep -i <module_name>`
``` ```
# apt install php8.2-{bcmath,cli,common,ctype,curl,dom,exif,fpm,ftp,gd,gmp,imagick,imap,intl,ldap,mbstring,posix,smbclient,xml,xsl,zip} # apt install php8.2-{bcmath,cli,common,ctype,curl,dom,exif,fpm,ftp,gd,gmp,imagick,imap,intl,ldap,mbstring,posix,smbclient,xml,xsl,zip} libmagickcore-6.q16-6-extra
``` ```
- **ATTENTION**, pour que l'extension php8.2-imagick fonctionne, il faut installer une librairie ! - **ATTENTION**, pour que l'extension php8.2-imagick fonctionne, il faut installer une librairie !
``` ```
...@@ -179,6 +179,18 @@ Une version de retard par rapport au [Release Schedule](https://github.com/nextc ...@@ -179,6 +179,18 @@ Une version de retard par rapport au [Release Schedule](https://github.com/nextc
# Remove X-Powered-By, which is an information leak # Remove X-Powered-By, which is an information leak
fastcgi_hide_header X-Powered-By; fastcgi_hide_header X-Powered-By;
### <https://odoo.itopie.ch/web#id=281&action=491&active_id=2&model=project.task&view_type=form&cids=&menu_id=323>
### <https://docs.nextcloud.com/server/28/admin_manual/installation/nginx.html>
# Set .mjs and .wasm MIME types
# Either include it in the default mime.types list
# and include that list explicitly or add the file extension
# only for Nextcloud like below:
include mime.types;
types {
text/javascript js mjs;
application/wasm wasm;
}
# Specify how to handle directories -- specifying `/index.php$request_uri` # Specify how to handle directories -- specifying `/index.php$request_uri`
# here as the fallback means that Nginx always exhibits the desired behaviour # here as the fallback means that Nginx always exhibits the desired behaviour
# when a client requests a path that corresponds to a directory that exists # when a client requests a path that corresponds to a directory that exists
...@@ -429,6 +441,22 @@ EOF ...@@ -429,6 +441,22 @@ EOF
./config/config.php ./config/config.php
# systemctl start nginx.service # systemctl start nginx.service
``` ```
1. Ajouter la fenêtre de maintenance pour les "background jobs" entre 01:00+00:00 (UTC) et 05:00+00:00 (cf. <https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/background_jobs_configuration.html>) :
```
# vi /srv/nextcloud/config/config.php
[add:
'maintenance_window_start' => 1,
]
#
```
1. Configurer la region téléphonique (cf. <https://docs.nextcloud.com/server/28/admin_manual/configuration_server/config_sample_php_parameters.html#default-phone-region>) :
```
# vi /srv/nextcloud/config/config.php
[add
'default_phone_region' => 'CH',
]
#
```
1. Se connecter à l'adresse <https://${WEBSITENAME.TLD}> pour confirmer que tout est OK 1. Se connecter à l'adresse <https://${WEBSITENAME.TLD}> pour confirmer que tout est OK
... ...
......