Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Using Forwarded header for scheme if FORWARD_SCHEME env variable is True. #597

Closed
wants to merge 0 commits into from

Conversation

charlie-mtz
Copy link

Description
Added logic to replace request.scheme with Forwarded HTTP header (RFC 7239) if environment variable FORWARD_SCHEME=True.

Purpose
Allows using Apprtc behind a TLS termination proxy. Makes Apprtc easier to deploy in a Docker environment.

Test
Example usage in the test development server:
dev_appserver.py apprtc/out/app_engine --env_var FORWARD_SCHEME=True

@KaptenJansson
Copy link
Contributor

Thanks for doing this, could you also add instructions to the README under the DEPLOYMENT section?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants