{% extends "base.html" %} {% block title %}Settings — TG Stremio{% endblock %} {% block content %}

Settings

Runtime configuration — stored in the database, no restart needed.

General

Admin Authentication

{% if settings.admin_password_set is defined and settings.admin_password_set %} Password is set {% endif %}

Signs admin login sessions. Changing it logs out all admins after the next restart. {% if settings.session_secret_set is defined and settings.session_secret_set %} Secret is set {% endif %}


{% set anime_norm = settings.anime_channels | map('string') | map('replace', '-100', '') | list %}
{% for ch in settings.auth_channels %} {% set is_anime = (ch | string | replace('-100', '')) in anime_norm %}
{% endfor %}

Media & Content


Subscription

Users are pointed back to your bot automatically for renewals and joining.
{% for uid in settings.approver_ids %}
{% endfor %}

Global Search

{% if not userbot_configured %}

Requires USER_SESSION_STRING to be set in config.env (startup-critical, not editable here) and a full app restart. Restart the app after setting it to unlock this option.

{% endif %}

Global Search will not run unless at least one channel ID is added here. Enter numeric channel IDs (e.g. -1001234567890 or bare 1234567890).

{% for ch in settings.global_search_channels %}
{% endfor %}

Proxy Settings

Databases

Tracking and Storage 1 are required to boot the app and can't be edited here. Additional storage databases connect/disconnect instantly when saved — no restart needed. For data-safety reasons you can only append new databases or remove from the end of the list — editing or deleting one in the middle is rejected on save, since existing media documents reference databases by position.

{% for entry in settings.database_list %} {% if entry.locked %}
{{ "Tracking" if entry.type == "tracking" else "Storage 1" }}
{% endif %} {% endfor %}

{% for entry in settings.database_list %} {% if not entry.locked %}
{% endif %} {% endfor %}

Multi-Token Clients

Additional bot tokens used for parallel streaming. Changes reinitialise the client pool immediately (no restart needed).

{% for tok in settings.multi_tokens %}
{% endfor %}
{% endblock %}