Closed floffel closed 10 years ago
Alternativly, clone rainloop into /var/www/html, not /var/www/ Hopefully this helps...
Weird, I remember index.php
copying everything into /var/www/html
when it was first called...that must have changed between 1.6.1 and 1.6.9. Exposing all of /var/www
feels a bit risky from a security perspective, though, so I've created my own fix that copies the necessary files manually. Thanks for the report!
Is there any reason, why you don't clone it into /var/www/html?
Like changing this line: https://github.com/lava/dockermail/blob/master/rainloop/Dockerfile#L5 to
RUN git clone -b 1.6.9 --depth 1 https://github.com/RainLoop/rainloop-webmail.git /var/www/html
By cloning into /var/www/html
, the entire source directory becomes accessible from outside, i.e. you can access mail.example.org/.gitignore
etc. I'm not really familiar enough with the rainloop source code to say how big of a security risk this is, but having a separate /var/www/html
directory feels a bit cleaner to me.
Rainloop is in /var/www not /var/www/html