public data auto login fails
Posted: Mon May 07, 2018 12:48 pm
Hi,
I'm running OMERO 5.4.0 on localhost
nginx set up with defaults used in omero installation so omero-web.conf is:
trying to set public user as described in:
https://docs.openmicroscopy.org/omero/5 ... ublic.html
and also from the post:
viewtopic.php?f=4&t=8435
result of config get:
restarted all services.
always have to use port 4080 eg. http://localhost:4080/webgateway/img_detail/252/
http://localhost/webgateway/img_detail/252/ results in a page not found error.
help appreciated to resolve this.
I'm running OMERO 5.4.0 on localhost
nginx set up with defaults used in omero installation so omero-web.conf is:
- Code: Select all
upstream omeroweb {
server 127.0.0.1:4080 fail_timeout=0;
}
server {
listen 80;
server_name localhost;
sendfile on;
client_max_body_size 0;
# maintenance page serve from here
location @maintenance {
root /home/omero/OMERO.py/etc/templates/error;
try_files $uri /maintainance.html =502;
}
# weblitz django apps serve media from here
location /static {
alias /home/omero/OMERO.py/lib/python/omeroweb/static;
}
location @proxy_to_app {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_buffering off;
proxy_pass http://omeroweb;
}
location / {
error_page 502 @maintenance;
# checks for static file, if not found proxy to app
try_files $uri @proxy_to_app;
}
}
trying to set public user as described in:
https://docs.openmicroscopy.org/omero/5 ... ublic.html
and also from the post:
viewtopic.php?f=4&t=8435
result of config get:
- Code: Select all
omero> config get
omero.web.application_server=wsgi-tcp
omero.web.debug=True
omero.web.public.enabled=True
omero.web.public.password=xxxxxx
omero.web.public.url_filter=^\/(figure|webadmin\/myphoto\/|webclient\/(?!(script_ui|ome_tiff|figure_script|render_image_download|download_|ome_tiff_script|archived_files\/download|download_orig_metadata))|webgateway\/(?!(archived_files|download_as)))
omero.web.public.user=public_user
restarted all services.
always have to use port 4080 eg. http://localhost:4080/webgateway/img_detail/252/
http://localhost/webgateway/img_detail/252/ results in a page not found error.
help appreciated to resolve this.