Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change unban mechanics #16

Merged
merged 5 commits into from
Dec 14, 2023
Merged

Change unban mechanics #16

merged 5 commits into from
Dec 14, 2023

Conversation

umputun
Copy link
Owner

@umputun umputun commented Dec 14, 2023

A built-in web server proved to be a pain as it requires a non-trivial setup, like adding reverse proxy, managing firewall ports/forwarding, terminating SSL, etc. We better use the telegram callback (i.e., a button with action) instead of the link, which works directly with telegram protocol and doesn't require any exceptional support on the client side.

Important: the change is partially breaking in case the user runs with command-line parameters. --admin.url, --admin.secret, and --admin.address are not supported anymore, as we are not running a web server.

In case parameters are set via env, it will be fine, as ADMIN_URL, ADMIN_SECRET, and ADMIN_ADDRESS will be ignored.

@umputun umputun merged commit 2a3aa58 into master Dec 14, 2023
3 checks passed
@umputun umputun deleted the callback branch December 14, 2023 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant