ressl
A simple importd based SSL redirector. It accepts requests and redirects to the SSL version of the same page.
Why?
I needed something like this for a couple of sites that were hosted on a shared hosting provider but I wanted to only have one process doing the SSL redirects.
Usage
Simply run:
ressl
This launches ressl on port 8000 using Django’s runserver management command.
For production use it’s strongly recommended to instead use a real WSGI server like gunicorn or uWSGI , e.g.:
gunicorn ressl
To use a different port, use the server’s options, e.g.:
gunicorn -b 127.0.0.1:12345 ressl
You must set at least one envrionment variable for ressl to work: RESSL_ALLOWED_HOSTS. It’s a comma separated list of host names ressl is allowed to redirect, e.g.:
RESSL_ALLOWED_HOSTS=mycompany.com,myblog.me,myphotos.com gunicorn -b 127.0.0.1:12345 ressl
Debugging is done by setting the environment variable RESSL_DEBUG to any value:
RESSL_DEBUG=yep gunicorn -b 127.0.0.1:12345 ressl
If your site runs behind a proxy, you may have to tell ressl how to figure out if a request is SSL or not. Use the RESSL_PROXY_PROTOCOL environment variable to define it (defaults to 'HTTP_X_FORWARDED_PROTOCOL'):
RESSL_PROXY_PROTOCOL=HTTP_X_FORWARDED_PROTO gunicorn ressl
Feedback
Feel free to open tickets at https://github.com/jezdez/ressl/issues. Say thanks at https://www.gittip.com/jezdez/.
Metadata
Release files for ressl 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ressl-0.2.1.tar.gz | 2.5 kB | Without provenance | Details for ressl-0.2.1.tar.gz |
Release files / ressl-0.2.1.tar.gz
| Download URL | ressl-0.2.1.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a5b137db3734476a820d50fc1bfb8d04ba8650adb088722b3694b39084e374cc
|
|
BLAKE2b-256 checksum How to use checksums |
b9eba944cd61103c10faa1d74eb4c05d5f2c4a7e3df76ee133accb960ea9f474
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for ressl 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.