iris-web
iris-web copied to clipboard
[BUG] Unable to serve from nginx sub directory domain.com/iris
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:
- 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