Explorar el Código

Allow nextcloud / owncloud to access .file to split files

See https://forum.hestiacp.com/t/tip-create-a-nginx-template-for-nextcloud-to-let-synchronize-files-bigger-than-10mb/5123
Jaap Marcus hace 4 años
padre
commit
9836a62cb7

+ 1 - 1
install/deb/templates/web/nginx/caching.stpl

@@ -53,7 +53,7 @@ server {
         proxy_pass      https://%ip%:%web_ssl_port%;
     }
 
-    location ~ /\.(?!well-known\/) { 
+    location ~ /\.(?!well-known\/|file) { 
        deny all; 
        return 404;
     }

+ 1 - 1
install/deb/templates/web/nginx/caching.tpl

@@ -48,7 +48,7 @@ server {
         proxy_pass      http://%ip%:%web_port%;
     }
 
-    location ~ /\.(?!well-known\/) { 
+    location ~ /\.(?!well-known\/|file) {
        deny all; 
        return 404;
     }

+ 1 - 1
install/deb/templates/web/nginx/default.stpl

@@ -33,7 +33,7 @@ server {
         proxy_pass      https://%ip%:%web_ssl_port%;
     }
 
-    location ~ /\.(?!well-known\/) { 
+    location ~ /\.(?!well-known\/|file) {
        deny all; 
        return 404;
     }

+ 1 - 1
install/deb/templates/web/nginx/default.tpl

@@ -28,7 +28,7 @@ server {
         proxy_pass      http://%ip%:%web_port%;
     }
 
-    location ~ /\.(?!well-known\/) { 
+    location ~ /\.(?!well-known\/|file) {
        deny all; 
        return 404;
     }

+ 1 - 1
install/deb/templates/web/nginx/hosting.stpl

@@ -33,7 +33,7 @@ server {
         proxy_pass      https://%ip%:%web_ssl_port%;
     }
 
-    location ~ /\.(?!well-known\/) { 
+    location ~ /\.(?!well-known\/|file) {
        deny all; 
        return 404;
     }

+ 1 - 1
install/deb/templates/web/nginx/hosting.tpl

@@ -28,7 +28,7 @@ server {
         proxy_pass      http://%ip%:%web_port%;
     }
 
-    location ~ /\.(?!well-known\/) { 
+    location ~ /\.(?!well-known\/|file) {
        deny all; 
        return 404;
     }

+ 1 - 1
install/deb/templates/web/nginx/php-fpm/owncloud.stpl

@@ -42,7 +42,7 @@ server {
         deny all;
     }
     
-    location ~ /\.(?!well-known\/) { 
+    location ~ /\.(?!well-known\/|file) {
        deny all; 
        return 404;
     }

+ 1 - 1
install/deb/templates/web/nginx/php-fpm/owncloud.tpl

@@ -37,7 +37,7 @@ server {
         deny all;
     }
     
-    location ~ /\.(?!well-known\/) { 
+    location ~ /\.(?!well-known\/|file) {
        deny all; 
        return 404;
     }