iris-web icon indicating copy to clipboard operation
iris-web copied to clipboard

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

Open dchan14 opened this issue 4 months ago • 2 comments

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
2. 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 avatar Oct 06 '24 17:10 dchan14