hm-seclab / YAFRA

YAFRA is a semi-automated framework for analyzing and representing reports about IT Security incidents.
https://seclab.cs.hm.edu/oss-projects/yafra/
Apache License 2.0
27 stars 4 forks source link

Add reverse proxy #24

Open fritterhoff opened 3 years ago

fritterhoff commented 3 years ago

To reduce the huge amount of required ports add a reverse proxy in front of the web applications.

fritterhoff commented 3 years ago

I had a quick look on that topic the last days. From my point of view, the best solution would be treafik in front of all services and select the individual service on the path. (e.g. localhost/extractor get's bound to the extractor service)

The first hacky tests didn't work fine because the flask apps don't recognize that they're behind the proxy and e.g. try to load the static components from the root (localhost/static instead of localhost/extractor/static). The common approaches for Flask like setting the SCRIPT_NAME env var did not work 😞