Skip to content
This repository was 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.#610

Open
charlie-mtz wants to merge 1 commit intowebrtc:masterfrom
charlie-mtz:forward_scheme
Open

Using Forwarded header for scheme if FORWARD_SCHEME env variable is True.#610
charlie-mtz wants to merge 1 commit intowebrtc:masterfrom
charlie-mtz:forward_scheme

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

…EME environment variable is set. This allows using a TLS termination proxy.

Added use of Forward header scheme to README.md.
@charlie-mtz
Copy link
Author

Updated from #597. It now includes instructions in README.md @KaptenJansson.

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.

2 participants