mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 05:45:37 +08:00
Make InteractiveTools compatible with letsencrypt certificates.
This commit is contained in:
@@ -14,10 +14,10 @@ uwsgi:
|
||||
|
||||
interactivetools_map: database/interactivetools_map.sqlite
|
||||
python-raw: scripts/interactivetools/key_type_token_mapping.py
|
||||
route-host: ^([A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)\.([A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)\.([A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)\.(interactivetool\.localhost:8080)$ goto:interactivetool
|
||||
route-host: ^([A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)-([A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)\.([A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)\.(interactivetool\.localhost:8080)$ goto:interactivetool
|
||||
route-run: goto:endendend
|
||||
route-label: interactivetool
|
||||
route-host: ^([A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)\.([A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)\.([A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)\.(interactivetool\.localhost:8080)$ rpcvar:TARGET_HOST rtt_key_type_token_mapper_cached $2 $1 $3 $4 $0 5
|
||||
route-host: ^([A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)-([A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)\.([A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)\.(interactivetool\.localhost:8080)$ rpcvar:TARGET_HOST rtt_key_type_token_mapper_cached $1 $3 $2 $4 $0 5
|
||||
route-if-not: empty:${TARGET_HOST} httpdumb:${TARGET_HOST}
|
||||
route: .* break:404 Not Found
|
||||
route-label: endendend
|
||||
|
||||
@@ -260,8 +260,8 @@ class RealTimeManager(object):
|
||||
def target_if_active(self, trans, entry_point):
|
||||
if entry_point.active and not entry_point.deleted:
|
||||
request_host = trans.request.host
|
||||
rval = '%s//%s.%s.%s.%s.%s/' % (trans.request.host_url.split('//', 1)[0], entry_point.__class__.__name__.lower(), trans.security.encode_id(entry_point.id),
|
||||
entry_point.token, self.app.config.realtime_prefix, request_host)
|
||||
rval = '%s//%s-%s.%s.%s.%s/' % (trans.request.host_url.split('//', 1)[0], trans.security.encode_id(entry_point.id),
|
||||
entry_point.token, entry_point.__class__.__name__.lower(), self.app.config.realtime_prefix, request_host)
|
||||
if entry_point.entry_url:
|
||||
rval = '%s/%s' % (rval.rstrip('/'), entry_point.entry_url.lstrip('/'))
|
||||
return rval
|
||||
|
||||
Reference in New Issue
Block a user