tornadoweb / tornadoweb/tornado

Redirect HTTP to HTTPS (for Heroku)

Open
#2,597 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

routing
Dominant language
Python
Stars
22.2k
Forks
5.6k
Avg merge
3h 42m
Merged PRs (30d)
16

Description

I am running an instance of JupyterLab on Heroku.
https://github.com/heroku/heroku-jupyterlab

Heroku handles the SSL certificate but requires the WebServer on the app level to handle the redirecting:

https://help.heroku.com/J2R1S4T8/can-heroku-force-an-application-to-use-ssl-tls

This seems to be possible with Django & Flask; but I can't seem to find any options for configuring Tornado to do the same (which is used to power JupyterLab).

It would be nice to have an option similar to in Rails and Django like config.force_ssl = true etc.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by locating Tornado’s HTTP/HTTPS server configuration and compare the requested Heroku redirect behavior with the linked Heroku guidance. Done means the requested configuration behavior is defined, implemented, and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.