<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">Hi Andreas<br>
</div>
<div><br>
</div>
<div>All our production OMERO instances currently use Nginx, we haven't done any performance testing with Whitenoise. However based on the Whitenoise documentation I'd expect it to be fine for a small number of users. If you go into production with this setup
 it'd be great if you could follow up on this thread with your results, good or bad, as it's something others might be interested in.<br>
</div>
<div><br>
</div>
<div>Could you point me to the lines in ome.viewportImage.js and omeroweb.viewer.min.js that you had to change? We've had a similar bug report before:
<a href="https://trello.com/c/emmH0lCd/520-omeroweb-extraneous-forward-slash-for-static-asset-location" target="_blank">
https://trello.com/c/emmH0lCd/520-omeroweb-extraneous-forward-slash-for-static-asset-location</a>.</div>
<div><br>
</div>
<div>Thanks!</div>
<div>Simon<br>
</div>
<div><br>
</div>
<div class="gmail_quote">
<div dir="ltr" class="m_5108750097730202924gmail_attr">On Thu, 24 Jan 2019 at 10:33, Andreas Mueller <<a href="mailto:Andreas.Mueller@biologie.uni-osnabrueck.de" target="_blank">Andreas.Mueller@biologie.uni-osnabrueck.de</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  Hi Simon,<br>
<br>
  thanks for your mail!<br>
<br>
  Ok, got that:  I switched debug to "FALSE".<br>
<br>
  I've installed "whitenoise".  That was an easy task:  <br>
<br>
     pip install ..     and <br>
     config append .. <br>
<br>
  - ready. <br>
<br>
  And I don't have to worry about a nginx installation. Nice!<br>
<br>
  >> Do I run in trouble later if I bring that in production ??<br>
<br>
  a nice day for all<br>
  Andreas<br>
<br>
  PS: 2 notes:<br>
<br>
  - the user omero can not start a service on port 80. I fixed that with<br>
    a local port-forwarding. It's mutch cheaper than a running nginx!<br>
<br>
  - whitenoise has troubles with double slashes in a URL '//'. Some<br>
    icon's where broken.  <br>
<br>
    I fixed that by hardcoding the two files ome.viewportImage.js and<br>
    the file omeroweb.viewer.min.js<br>
<br>
  .. I hope that is enought. Hints are welcome :-)<br>
<br>
<br>
<br>
On 22.01.19 10:31, Simon Li wrote:<br>
> Hi Andreas<br>
> <br>
> You shouldn't run OMERO.web in in production with DEBUG enabled, see the Django docs for an explanation:
<a href="https://docs.djangoproject.com/en/1.8/ref/settings/#debug" rel="noreferrer" target="_blank">
https://docs.djangoproject.com/en/1.8/ref/settings/#debug</a><br>
> <br>
> It's possible to run OMERO.web without a web server using the whitenoise package:
<a href="http://whitenoise.evans.io/en/stable/" rel="noreferrer" target="_blank">
http://whitenoise.evans.io/en/stable/</a><br>
> with this OMERO.web configuration line:<br>
> <br>
> config append -- omero.web.middleware '{"index": 0, "class": "whitenoise.middleware.WhiteNoiseMiddleware"}'<br>
> <br>
> For example this is used in one of our OMERO.web docker images for convenience:
<a href="https://github.com/openmicroscopy/omero-web-docker/blob/5.4.9/standalone/Dockerfile" rel="noreferrer" target="_blank">
https://github.com/openmicroscopy/omero-web-docker/blob/5.4.9/standalone/Dockerfile</a><br>
> <br>
> Simon<br>
> <br>
> <br>
> On Tue, 22 Jan 2019 at 10:03, Andreas Mueller <<a href="mailto:Andreas.Mueller@biologie.uni-osnabrueck.de" target="_blank">Andreas.Mueller@biologie.uni-osnabrueck.de</a><mailto:<a href="mailto:Andreas.Mueller@biologie.uni-osnabrueck.de" target="_blank">Andreas.Mueller@biologie.uni-osnabrueck.de</a>>>
 wrote:<br>
> <br>
>   Hi all,<br>
> <br>
>   I've made my next Omero-Test-Installation without the nginx-part.<br>
> <br>
>   It runs find (when, and only when I set the debug flag (?)) .. !<br>
> <br>
> <br>
>   Are there still reasens to install the nginx cache webserver?<br>
> <br>
>   Can I bring my installation in production-mode without disadvantages?<br>
> <br>
> <br>
>   thanks a lot and have a nice day<br>
>   Andreas<br>
> <br>
> _______________________________________________<br>
> ome-users mailing list<br>
> <a href="mailto:ome-users@lists.openmicroscopy.org.uk" target="_blank">ome-users@lists.openmicroscopy.org.uk</a><mailto:<a href="mailto:ome-users@lists.openmicroscopy.org.uk" target="_blank">ome-users@lists.openmicroscopy.org.uk</a>><br>
> <a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users" rel="noreferrer" target="_blank">
http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users</a><br>
> <br>
> The University of Dundee is a registered Scottish Charity, No: SC015096<br>
<br>
> _______________________________________________<br>
> ome-users mailing list<br>
> <a href="mailto:ome-users@lists.openmicroscopy.org.uk" target="_blank">ome-users@lists.openmicroscopy.org.uk</a><br>
> <a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users" rel="noreferrer" target="_blank">
http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users</a><br>
<br>
_______________________________________________<br>
ome-users mailing list<br>
<a href="mailto:ome-users@lists.openmicroscopy.org.uk" target="_blank">ome-users@lists.openmicroscopy.org.uk</a><br>
<a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users" rel="noreferrer" target="_blank">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users</a><br>
</blockquote>
</div>
</div>
</div>
</div>
<br>
<span style="font-size:10pt;">The University of Dundee is a registered Scottish Charity, No: SC015096</span>
</body>
</html>