
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
django-ssh-tunnel-proxy
Advanced tools
Opens an ssh tunnel so your local development server can be accessed remotely
pip install django-ssh-tunnel-proxy
sshtunnelproxy
to INSTALLED_APPS
python manage.py runserver
python manage.py opensshtunnelproxy
Create a temporary tunnel using the context manager
from sshtunnelproxy import tunnel
with tunnel() as remote_url:
pass # do something
SSH_TUNNEL_USER: str = ''
"""The SSH user to use for the tunnel. default: `''`"""
SSH_TUNNEL_PASSWORD: str = ''
"""The SSH password to use for the tunnel. default: `''`"""
SSH_TUNNEL_PORT_RANGE: tuple[int, int] = (24000, 24999)
"""The range of ports to use for the tunnel. default: `(24000, 24999)`"""
SSH_TUNNEL_HOST: str = ''
"""The host to tunnel to. default: `''`"""
SSH_TUNNEL_URL_GENERATOR: Callable[[int], str] = lambda port: f"http://{SSH_TUNNEL_HOST}:{port + 1}"
"""
The function to generate the tunnel URL.
Takes the remote port as an argument and returns the URL at which the tunnel can be accessed.
default: `lambda port: f'http://{HOST}:{port + 1}'`
"""
For this to work, you need a remote web server to reverse-proxy the tunneled port.
Make sure to add SSH_TUNNEL_HOST
to your ALLOWED_HOSTS
.
Also, SESSION_COOKIE_SECURE = False
must be set, or else you won't be able to log in.
FAQs
A Django plugin that allows ssh remote tunnels.
We found that django-ssh-tunnel-proxy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.