史上最全Nextcloud部署方式,含snap与手动部署两种(已亲测使用)_

阅读: 评论:0

2024年2月8日发(作者:)

史上最全Nextcloud部署方式,含snap与手动部署两种(已亲测使用)_

application/rss+xml application/+json application/-fontobject application/x-font-ttf application/x-web-app-manifest+jsonapplication/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plaintext/vcard text/ text/vtt text/x-component text/x-cross-domain-policy;

# Uncomment if your server is build with the ngx_pagespeed module # This module is currently not supported. #pagespeed off;

error_page 403 /core/templates/; error_page 404 /core/templates/;

location / { rewrite ^ /$uri; }

location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ { deny all; } location ~ ^/(?:.|autotest|occ|issue|indie|db_|console) { deny all; }

location ~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+|core/templates/40[34]).php(?:$|/) { include fastcgi_params; fastcgi_split_path_info ^(.+.php)(/.*)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param HTTPS on; #Avoid sending the security headers twice fastcgi_param modHeadersAvailable true; fastcgi_param front_controller_active true; fastcgi_pass php-handler; fastcgi_intercept_errors on; fastcgi_request_buffering off; }

location ~ ^/(?:updater|ocs-provider)(?:$|/) { try_files $uri/ =404; index ; }

# Adding the cache control header for js and css files # Make sure it is BELOW the PHP block location ~* .(?:css|js)$ { try_files $uri /$uri$is_args$args; add_header Cache-Control "public, max-age=7200"; # Add headers to serve security related headers (It is intended to # have those duplicated to the ones above) # Before enabling Strict-Transport-Security headers please read into # this topic first.

8.5、设置memcached做nextcloud缓存后端yum -y install memcachedvim /etc/sysconfig/memcachedvim /usr/share/nginx/html/nextcloud/config/添加如下参数:

史上最全Nextcloud部署方式,含snap与手动部署两种(已亲测使用)_

本文发布于:2024-02-08 20:37:40,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/170739586068981.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:部署   亲测   设置   添加   缓存
留言与评论(共有 0 条评论)
   
验证码:
排行榜

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23