Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
OMERO.web: obtain external scheme from HTTP_X_FORWARDED_PROTO_WEB_PROXY
If OMERO.web is behind multiple (possible insecure) nginx proxies this header can be set by the front-end proxy to indicate the scheme
  • Loading branch information
manics committed Sep 11, 2019
commit 45af3a479164026087e07a9af9c61adc66c64933
2 changes: 2 additions & 0 deletions home/jobs/OMERO-web/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ $OMERO_DIST/bin/omero config set omero.web.prefix $WEB_PREFIX
$OMERO_DIST/bin/omero config set omero.web.static_url $WEB_PREFIX'/static/'
$OMERO_DIST/bin/omero config set omero.web.static_root $HOME'/static/web/'

$OMERO_DIST/bin/omero config set omero.web.secure_proxy_ssl_header '["HTTP_X_FORWARDED_PROTO_WEB_PROXY", "https"]'

$OMERO_DIST/bin/omero config set omero.web.session_engine 'django.contrib.sessions.backends.cache'
$OMERO_DIST/bin/omero config set omero.web.caches '{"default": {"BACKEND": "django_redis.cache.RedisCache","LOCATION": "redis://redis:6379/0"}}'

Expand Down