Browse Source

Block access to webmail.domain.com/data/ with Rainloop

According their notice:
https://www.rainloop.net/docs/installation/#notice
Jaap Marcus 4 years ago
parent
commit
f73ca23512

+ 5 - 0
install/deb/templates/mail/nginx/default_rainloop.stpl

@@ -11,6 +11,11 @@ ssl_certificate_key %ssl_key%;
 ssl_stapling on;
 ssl_stapling on;
 ssl_stapling_verify on;
 ssl_stapling_verify on;
 
 
+location ^~ /data {
+    deny all;
+    return 404;
+}
+
 location ~ ^/(README.md|config|temp|logs|bin|SQL|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
 location ~ ^/(README.md|config|temp|logs|bin|SQL|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
     deny all;
     deny all;
     return 404;
     return 404;

+ 6 - 1
install/deb/templates/mail/nginx/default_rainloop.tpl

@@ -13,7 +13,12 @@ location ~ /\.(?!well-known\/) {
     return 404;
     return 404;
 }
 }
 
 
-location ~ /data/ {
+location ^~ /data {
+    deny all;
+    return 404;
+}
+
+location ~ ^/(README.md|config|temp|logs|bin|SQL|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
     deny all;
     deny all;
     return 404;
     return 404;
 }
 }

+ 5 - 0
install/deb/templates/mail/nginx/rainloop.stpl

@@ -16,6 +16,11 @@ location ~ /\.(?!well-known\/) {
     return 404;
     return 404;
 }
 }
 
 
+location ^~ /data {
+    deny all;
+    return 404;
+}
+
 location ~ ^/(README.md|config|temp|logs|bin|SQL|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
 location ~ ^/(README.md|config|temp|logs|bin|SQL|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
     deny all;
     deny all;
     return 404;
     return 404;

+ 5 - 0
install/deb/templates/mail/nginx/rainloop.tpl

@@ -13,6 +13,11 @@ location ~ /\.(?!well-known\/) {
     return 404;
     return 404;
 }
 }
 
 
+location ^~ /data {
+    deny all;
+    return 404;
+}
+
 location ~ ^/(README.md|config|temp|logs|bin|SQL|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
 location ~ ^/(README.md|config|temp|logs|bin|SQL|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
     deny all;
     deny all;
     return 404;
     return 404;