Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
J

Jauth

> 安全
Open source

Lightweight SSL/TLS reverse proxy with authorization(via Telegram and SSH) for self-hosted apps

188 stars0 likes2 views
WebsiteGitHub

About

Lightweight SSL/TLS reverse proxy with authorization(via Telegram and SSH) for self-hosted apps

Jauth

Jauth is a lightweight SSL/TLS reverse proxy with authorization. Great for protect your self-hosted applications. Moreover, it offers SSO for simpler login management.

Features

  • Single binary executable with no dependencies
  • SSL/TLS encryption using autogenerated self-signed certificates or Let's Encrypt
  • User authorization via SSH or Telegram
  • Optional Singe Sign-On
  • Minimal configuration required
  • Whitelist-based access control
  • Support for multiple domain names
  • Security for bloated and vulnerable modern applications
  • Doesn't use any Telegram bot API
  • No passwords. No registration

Getting Started

  1. Download the latest release:
bash
wget https://github.com/Jipok/Jauth/releases/latest/download/jauth
  1. Make executable:
bash
chmod +x ./jauth
  1. Run ./jauth

Without the configuration, there will be the following behavior:

  • Generate a self-signed certificate valid for one year. It will be saved in the current directory and used on restart.
  • Run web server on 0.0.0.0:80 which will redirect all incoming connections to port 443
  • Run web server on 0.0.0.0:443 with generated certificate. It accepts connections from any domain or directly by ip address. Displays the login page.
  • Run ssh server on 0.0.0.0:2222 for authorization. The list of authorized keys and their corresponding usernames is taken from ~/.ssh/authorized_keys. Server key from ~/.ssh/id_rsa
  • After authorization, requests will be redirected to 127.0.0.1:8080

Configuration

By default, the server tries to open the ./jauth.toml file. You can specify any path/name as the first command line argument.

Simple but useful config example

…

Tips

  • To be able to authorize via telegram, you need to register your own bot. It's simple. WidgetBotName and WidgetBotToken must be received from the telegram bot @botfather. You also need to run the /setdomain command for this bot and specify the appropriate domain. Telegram will only allow authorization from this domain. jauth does not use a bot in any way. The token is needed only for authorization validation, the api is not called.
  • One telegram bot = one domain.
  • Each domain will require(from LE) its own certificate. This process is fast, but not instantaneous. Unfortunately, there may be no information about the process in the logs. You can just wait a little (30 seconds) and try to open the page in the browser.
  • The certificates will be saved in the ./jauth-autocert folder.
  • Login via ssh is enabled by default. The standard authorized_keys file format is used: each line contains a public key and a username. You can safely use your ~/.ssh/authorized_keys (default) from the system ssh server. You can also easily change the username specified there to the desired one, for sshd it means almost nothing.
  • The list of authorized users is preserved between restarts in ./jauth-tokens.txt
  • An authenticated user's username is passed to the server through the Remote-User HTTP header.
  • There is a github-key-import.sh script that allows for search and quick appending of SSH keys from a GitHub profile. It requires fzf and jq.

Full configuration example

…

Thanks to

  • SSH As Authentication For Web Applications
  • SSL-proxy project
  • Rich GO ecosystem that has an ssh implementation

Contributing

I prefer minimalism. If there is a feature you want to add, let's discuss it first before implementing the code. I'm open to changing my opinion, but I am generally satisfied with things as they are.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Goauthenticationgolangletsencryptlightweight

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category安全
PricingOpen source

> Related tools

O
OWASP ZAP
开源 Web 应用安全扫描器
O
owasp-wstg-tracker
Simple web app to track OWASP WSTG security testing progress
H
homebridge-mi-gateway-security
XiaoMi Gateway Security plugin for HomeBridge.