command
module
Version:
v0.0.0-...-1ebda8a
Opens a new window with list of versions in this module.
Published: May 25, 2022
License: MIT
Opens a new window with license information.
Imports: 20
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
tg-auth-proxy
A reverse proxy with built-in authentication via Telegram Login Widget.
Only specified Telegram users will have access to backend site.
Usage
-
Clone repository to any convenient location, e.g. /opt/tg-auth-proxy
.
-
Create a .env
file containing app parameters (see below)
-
Edit docker-compose.yaml
file if neccessary.
-
Build and run an application:
docker compose build
docker compose up -d
Parameters
This app is configured by env variables only.
Variable name |
Default value |
Description |
TG_ALLOWED_USERS |
Required |
List of Telegram user id/names/urls |
TG_BOT_TOKEN |
Required |
Telegram bot access token |
BACKEND_URL |
Required |
Upstream URL |
LISTEN_ADDR |
0.0.0.0:8000 |
Endpoint to listen |
TG_ALLOWED_USERS
should contain a list of Telegram users in the following format:
-
Each user might be specified by his/hers ID, username, username with @
prefix or a t.me
URL:
123456
username
@username
http://t.me/username
https://t.me/username
-
Users should be separated by space, comma or semicolon
-
Leading and trailing spaces are ignored
License
MIT
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.