瀏覽代碼

fix: data folder is accessible warning

wernerfred 4 年之前
父節點
當前提交
e53e8718c5
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      entrypoint.sh

+ 3 - 0
entrypoint.sh

@@ -1,5 +1,8 @@
 #!/bin/bash
 
+# Add .htacces according to https://www.rainloop.net/docs/installation/#notice
+echo "Require all denied" > /rainloop/data/.htaccess
+
 # Set rainloop directory permissions to catch bind mounts too
 chown -R www-data:www-data /rainloop/data
 find /rainloop -type d -exec chmod 755 {} \;