[ome-users] gunicorn and ssl

Aleksandra Tarkowska at22 at sanger.ac.uk
Wed Feb 6 11:21:04 GMT 2019


Hi Andreas

As I mentioned before you need to set

$ bin/omero config set omero.web.wsgi_args -- '—certfile=/path/to/server.crt —keyfile=/path/to/server.key’

and restart web as usual by

$ bin/omero web stop/start

omero.web.wsgi_args are taken to the account while omeroweb is starting up


To check if additional wsgi params were applied you need to simply:

$ ps -ef | grep gunicorn
omero-w+ 26971 26813  0 Feb04 ?        00:00:56 /opt/omero/web/venv/bin/python /opt/omero/web/venv/bin/gunicorn -D -p /opt/omero/web/OMERO.web/var/django.pid --bind 127.0.0.1:4080 --workers 25 --threads 1 --timeout 60 --max-requests 30000 --config file:/opt/omero/web/config/gunicorn-config.py omeroweb.wsgi:application

Ola

> On 6 Feb 2019, at 11:13, Andreas Mueller <Andreas.Mueller at Biologie.Uni-Osnabrueck.DE> wrote:
> 
>  hi there,
> 
>  how can I set start parameter to gunicorn ?
> 
>  I want to set the file location of the ssl certificate.
> 
>    --keyfile
>    --certfile
> 
> 
>  thanks in advance
>  Andreas
> 
> _______________________________________________
> ome-users mailing list
> ome-users at lists.openmicroscopy.org.uk
> https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.openmicroscopy.org.uk_mailman_listinfo_ome-2Dusers&d=DwICAg&c=D7ByGjS34AllFgecYw0iC6Zq7qlm8uclZFI0SqQnqBo&r=asFxulWcqDYhyFLqe_tgU0hGrkSqjZGfU5M5lX-MzwI&m=t1hZndM8MCIK121WPqyzN0zrj-5QWKiJktfQFdh1M4U&s=53DbAjyld-UzZgClBiHlPyg80gvkiABz1Ze9VAvaUbc&e=




-- 
 The Wellcome Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE.


More information about the ome-users mailing list