go to post John McBride · Feb 19 So here is answer is anybody is interested and running Iris for Health in a container and front ended by the nginx webgateway container. First - What ever url name you use in the web application configuration you will need to add to the nginx config file. See below Next - when access the url be sure to add the trailing slash (/) otherwise you will get a "url not found on this server message. I'm not sure why this happens as both URLs *should* work? Hope this helps. Example:URL Name: /csp/flask You will need to add it to the CSP.conf file for the nginx config like the following location /csp/flask { CSP ON; CSPNSD_pass 127.0.0.1:7038; CSPNSD_response_headers_maxsize 8k; CSPNSD_connect_timeout 300s; CSPNSD_send_timeout 300s; CSPNSD_read_timeout 300s; }
go to post John McBride · Feb 6 The problem is that when you try to install the flask app you get the screenshot (1st) that says it cannot find a WSGI runtime (like flask or django). The answer is, for a container, you need to install the flask runtime in the OS level not the virtual environment level. Example would be like this (In the Dockerfile) to install the flask runtime during a container build. This will install the runtime correctly and you will not get the WSGI message when trying to create an application. RUN apt install -y python3-flaskRUN apt install -y python3-django