nextcloud 优化扩展

cd /config

vi config.php

#ONLYOFFICE

  'allow_local_remote_servers' => true,

#应用商店加速
  'appstoreenabled' => true,
  'appstoreurl' => 'https://www.orcy.net/ncapps/v2/',

#nginx配置调优
     add_header Strict-Transport-Security 'max-age=15552000';
     add_header X-Permitted-Cross-Domain-Policies 'none';
     add_header X-XSS-Protection '1;mode=block';
     add_header X-Content-Type-Options 'nosniff';
     add_header X-Frame-Options 'SAMEORIGIN';
     add_header X-Download-Options 'noopen';
     add_header Referrer-Policy "no-referrer";
     add_header X-Robots-Tag 'none';

client_max_body_size 100G;

location ~ ^\/(?:build|tests|config|lib|3rdparty|templates|data)\/ {

      deny all;

     }

location ~ ^\/(?:\.|autotest|occ|issue|indie|db_|console) {

      deny all;

     }

你可能感兴趣的:(安全配置,解决方案,应用扩展,前端,服务器,linux)