comparison libervia/server/server.py @ 1435:396d5606477f

server (proxy): add "Forwarded" and "X-Forwarded-xxx" headers to reverse proxy
author Goffi <goffi@goffi.org>
date Mon, 14 Jun 2021 15:27:33 +0200
parents ed037818d6de
children fc91b78b71db 792a2e902ee9
comparison
equal deleted inserted replaced
1434:2f6dac783c8e 1435:396d5606477f
1626 return build_path.expanduser().resolve() 1626 return build_path.expanduser().resolve()
1627 1627
1628 def getExtBaseURLData(self, request): 1628 def getExtBaseURLData(self, request):
1629 """Retrieve external base URL Data 1629 """Retrieve external base URL Data
1630 1630
1631 this method tried to retrieve the base URL found by external user 1631 this method try to retrieve the base URL found by external user
1632 It does by checking in this order: 1632 It does by checking in this order:
1633 - base_url_ext option from configuration 1633 - base_url_ext option from configuration
1634 - proxy x-forwarder-host headers 1634 - proxy x-forwarder-host headers
1635 - URL of the request 1635 - URL of the request
1636 @return (urlparse.SplitResult): SplitResult instance with only scheme and 1636 @return (urlparse.SplitResult): SplitResult instance with only scheme and