duo-labs / cloudmapper

CloudMapper helps you analyze your Amazon Web Services (AWS) environments.
BSD 3-Clause "New" or "Revised" License
5.9k stars 797 forks source link

Redirect/expose the cloudmapper webserver content to httpd for access via HTTP/HTTPS #926

Closed tsvivayl closed 2 years ago

tsvivayl commented 2 years ago

Hello,

I'm trying to automate the use of cloudmapper so I would like to configure external HTTP/HTTPS access to the report.html file via apache/httpd. This is possible but unfortunately, it is not visualizing the graphs of the report. It looks like this:

image

I don't understand why it's not loading all the graphs/content since i have not moved the report.html file from its original location inside <cloudmapper_dir</web/account-data/

The only way to get the full experience is by running command "python cloudmapper.py webserver" and then opening a browser locally with "127.0.0.1:8000/account-data/report.html"

Is there any way to configure the full experience via external access? Maybe to somehow redirect "127.0.0.1:8000/account-data/report.html" to httpd/apache?

Thanks in advance

tsvivayl commented 2 years ago

Just found the resolution of the issue -

The "DocumentRoot" option in the httpd config file has to be set to "/web" and not "/web/account-data" because the "web" directory is where the styles are kept. The HTTP address will be :

http:///account-data/report.html

No need to run the "webserver" command of cloudmapper.py

Closing issue