dfir-iris / iris-web

Collaborative Incident Response platform
GNU Lesser General Public License v3.0
1.05k stars 173 forks source link

[BUG] Unable to serve from nginx sub directory domain.com/iris #609

Open dchan14 opened 4 days ago

dchan14 commented 4 days ago

I am trying out your DFIR IRIS web product on a RHEL server running podman. I have attemped multiple ways to serve the dfir-iris from a subdirectory like domain.com/iris but most of the CSS and links still point to the main domain.

Is there a way I can do this with IRIS?

I have tried: the nginx SCRIPT_NAME = /iris

and

Flask # app.config['APPLICATION_ROOT'] = '/iris' app.wsgi_app = DispatcherMiddleware( Response('Not Found', status=404), {'/iris': app.wsgi_app} ) But none of this seems to update all links correctly.

A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. update nginx iris configuration location: location /iris { proxy_set_header X-Script-Name /iris; proxy_set_header SCRIPT_NAME "/iris"; proxy_pass http://localhost:8000/iris; proxy_buffering off; proxy_set_header Host $host;

OR

  1. add this to source/app/init.py app.config['APPLICATION_ROOT'] = '/iris' app.wsgi_app = DispatcherMiddleware( Response('Not Found', status=404), {'/iris': app.wsgi_app} )

Expected behavior goto domain.com/iris and see the website

image

dchan14 commented 4 days ago

it does work fine if i put it on the root of the domain i started to replace all links hrefs in the webapp code with url_for, following the blueprint `

` but for some reason i don't see any of the data pulled back the template data cases, and attribute.