Outils pour utilisateurs

Outils du site


service_de_cloud_nextcloud

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
service_de_cloud_nextcloud [2020/05/29 16:18] – [Configuration web] adminservice_de_cloud_nextcloud [2023/02/07 17:59] (Version actuelle) – [Configuration web] admin
Ligne 9: Ligne 9:
 ===== Dépendances ===== ===== Dépendances =====
  
-Utilise [[PHP 7.3]] via fpm.\\  +Utilise [[PHP 7.3]] via fpm ainsi qu'un [[Serveur web sécurisé (Nginx / Let's Encrypt)]].\\  
-Ainsi que les outils :+Nécessite également les outils :
  
-<code>sudo apt-get install -y nginx mariadb-server redis-server php-redis</code>+<code>sudo apt-get install -y mariadb-server redis-server php-redis</code>
  
 +
 +Vous devrez également ajouter le domaine __cloud.sleto.net__ dans le [[Serveur DNS (bind9)]]
 ===== Base de données ===== ===== Base de données =====
  
Ligne 41: Ligne 43:
  
 <code>cd /tmp <code>cd /tmp
-curl https://download.nextcloud.com/server/releases/latest.tar.bz2 -o latest.tar.bz2+curl https://download.nextcloud.com/server/releases/latest-22.tar.bz2 -o latest.tar.bz2
 tar -xjf latest.tar.bz2 -C /var/www && chown -R www-data:www-data /var/www/ && rm -f latest.tar.bz2 tar -xjf latest.tar.bz2 -C /var/www && chown -R www-data:www-data /var/www/ && rm -f latest.tar.bz2
 mkdir -p /var/nc_data/ && chown -R www-data:www-data /var/nc_data/ mkdir -p /var/nc_data/ && chown -R www-data:www-data /var/nc_data/
Ligne 121: Ligne 123:
 Créer un fichier ///etc/nginx/php_optimization.conf//: Créer un fichier ///etc/nginx/php_optimization.conf//:
 <code> <code>
-    fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;+    fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
     fastcgi_param SCRIPT_FILENAME $request_filename;     fastcgi_param SCRIPT_FILENAME $request_filename;
     fastcgi_param PATH_INFO $path_info;     fastcgi_param PATH_INFO $path_info;
Ligne 151: Ligne 153:
          
     proxy_set_header        Upgrade           $http_upgrade;     proxy_set_header        Upgrade           $http_upgrade;
-    proxy_set_header        Connection        \"upgrade\";+    proxy_set_header        Connection        "upgrade";
     proxy_set_header        Host              $host;     proxy_set_header        Host              $host;
     proxy_set_header        X-Real-IP         $remote_addr;     proxy_set_header        X-Real-IP         $remote_addr;
Ligne 162: Ligne 164:
     proxy_buffers           32 4k;     proxy_buffers           32 4k;
     proxy_intercept_errors  on;     proxy_intercept_errors  on;
-    add_header              Strict-Transport-Security         \"max-age=15768000; includeSubDomains; preload;\";+    add_header              Strict-Transport-Security         "max-age=15768000; includeSubDomains; preload;";
     add_header              X-Robots-Tag none always;      add_header              X-Robots-Tag none always; 
     add_header              X-Download-Options                noopen always;     add_header              X-Download-Options                noopen always;
     add_header              X-Permitted-Cross-Domain-Policies none always;     add_header              X-Permitted-Cross-Domain-Policies none always;
-    add_header              X-Content-Type-Options            \"nosniff\" always; +    add_header              X-Content-Type-Options            "nosniff" always; 
-    add_header              X-XSS-Protection                  \"1; mode=block\" always; +    add_header              X-XSS-Protection                  "1; mode=block" always; 
-    add_header              Referrer-Policy                   \"no-referrer\" always; +    add_header              Referrer-Policy                   "no-referrer" always; 
-    add_header              X-Frame-Options                   \"SAMEORIGIN\" always;+    add_header              X-Frame-Options                   "SAMEORIGIN" always;
     fastcgi_hide_header     X-Powered-By;     fastcgi_hide_header     X-Powered-By;
     fastcgi_read_timeout    3600;     fastcgi_read_timeout    3600;
Ligne 186: Ligne 188:
     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/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;     gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;
-    gzip_disable \"MSIE [1-6]\.\";+    gzip_disable "MSIE [1-6]\.";
          
     root /var/www/nextcloud/;     root /var/www/nextcloud/;
Ligne 253: Ligne 255:
 <code> <code>
 service nginx stop service nginx stop
-service php7.3-fpm stop+service php7.4-fpm stop
 service mariadb restart service mariadb restart
-service php7.3-fpm restart+service php7.4-fpm restart
 service redis-server restart service redis-server restart
 service nginx restart    service nginx restart   
 </code> </code>
  
service_de_cloud_nextcloud.1590761920.txt.gz · Dernière modification : 2021/05/08 13:25 (modification externe)