[ome-users] omero Installation with whitenoise and https

Simon Li spli at dundee.ac.uk
Tue Feb 5 13:21:55 GMT 2019


Hi Andreas

Django and whitenoise don't support HTTPS directly. Google comes up with a few Django add-ons but they're not recommended for production, the only practical option I'm aware of is to use a webserver/proxy such as Nginx. Since you've configured whitenoise if you already have a web-server on a different machine you could use that to proxy OMERO.web, otherwise have a look at our docs:
https://docs.openmicroscopy.org/omero/5.4.10/sysadmins/unix/install-web/walkthrough/omeroweb-install-centos7-ice3.6.html

Simon




On Tue, 5 Feb 2019 at 10:44, Andreas Mueller <Andreas.Mueller at biologie.uni-osnabrueck.de<mailto:Andreas.Mueller at biologie.uni-osnabrueck.de>> wrote:
  Hi Simon,

  me again  :-)

  know I've to configure the https

  How do I do that best with whitenoise as middleware?

  best regards
  Andreas

On 24.01.19 11:33, andreas >> Mueller, Andreas wrote:
>   Hi Simon,
>
>   thanks for your mail!
>
>   Ok, got that:  I switched debug to "FALSE".
>
>   I've installed "whitenoise".  That was an easy task:
>
>      pip install ..     and
>      config append ..
>
>   - ready.
>
>   And I don't have to worry about a nginx installation. Nice!
>
>   >> Do I run in trouble later if I bring that in production ??
>
>   a nice day for all
>   Andreas
>
>   PS: 2 notes:
>
>   - the user omero can not start a service on port 80. I fixed that with
>     a local port-forwarding. It's mutch cheaper than a running nginx!
>
>   - whitenoise has troubles with double slashes in a URL '//'. Some
>     icon's where broken.
>
>     I fixed that by hardcoding the two files ome.viewportImage.js and
>     the file omeroweb.viewer.min.js
>
>   .. I hope that is enought. Hints are welcome :-)
>
>
>
> On 22.01.19 10:31, Simon Li wrote:
> > Hi Andreas
> >
> > You shouldn't run OMERO.web in in production with DEBUG enabled, see the Django docs for an explanation: https://docs.djangoproject.com/en/1.8/ref/settings/#debug
> >
> > It's possible to run OMERO.web without a web server using the whitenoise package: http://whitenoise.evans.io/en/stable/
> > with this OMERO.web configuration line:
> >
> > config append -- omero.web.middleware '{"index": 0, "class": "whitenoise.middleware.WhiteNoiseMiddleware"}'
> >
> > For example this is used in one of our OMERO.web docker images for convenience: https://github.com/openmicroscopy/omero-web-docker/blob/5.4.9/standalone/Dockerfile
> >
> > Simon
> >
> >
> > On Tue, 22 Jan 2019 at 10:03, Andreas Mueller <Andreas.Mueller at biologie.uni-osnabrueck.de<mailto:Andreas.Mueller at biologie.uni-osnabrueck.de><mailto:Andreas.Mueller at biologie.uni-osnabrueck.de<mailto:Andreas.Mueller at biologie.uni-osnabrueck.de>>> wrote:
> >
> >   Hi all,
> >
> >   I've made my next Omero-Test-Installation without the nginx-part.
> >
> >   It runs find (when, and only when I set the debug flag (?)) .. !
> >
> >
> >   Are there still reasens to install the nginx cache webserver?
> >
> >   Can I bring my installation in production-mode without disadvantages?
> >
> >
> >   thanks a lot and have a nice day
> >   Andreas
> >
> > _______________________________________________
> > ome-users mailing list
> > ome-users at lists.openmicroscopy.org.uk<mailto:ome-users at lists.openmicroscopy.org.uk><mailto:ome-users at lists.openmicroscopy.org.uk<mailto:ome-users at lists.openmicroscopy.org.uk>>
> > http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
> >
> > The University of Dundee is a registered Scottish Charity, No: SC015096
>
> > _______________________________________________
> > ome-users mailing list
> > ome-users at lists.openmicroscopy.org.uk<mailto:ome-users at lists.openmicroscopy.org.uk>
> > http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
>
_______________________________________________
ome-users mailing list
ome-users at lists.openmicroscopy.org.uk<mailto:ome-users at lists.openmicroscopy.org.uk>
http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users

The University of Dundee is a registered Scottish Charity, No: SC015096
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20190205/82bc403f/attachment.html>


More information about the ome-users mailing list