105 lines
2.7 KiB
Bash
105 lines
2.7 KiB
Bash
# Telegram Bot Token and Admin IDs
|
|
BOT_TOKEN=your_bot_token_here
|
|
ADMIN_IDS=comma_separated_admin_ids
|
|
|
|
POSTGRES_USER=postgres
|
|
POSTGRES_PASSWORD=postgres
|
|
POSTGRES_HOST=remnawave-tg-shop-db
|
|
POSTGRES_PORT=5432
|
|
POSTGRES_DB=postgres
|
|
|
|
# Localization and Display
|
|
DEFAULT_LANGUAGE="ru" # or "en"
|
|
DEFAULT_CURRENCY_SYMBOL="RUB" # e.g., RUB, USD, EUR
|
|
|
|
# External Links
|
|
SUPPORT_LINK=https://t.me/your_support_link
|
|
SERVER_STATUS_URL=https://status.yourdomain.tld/status/your_service
|
|
TERMS_OF_SERVICE_URL=https://example.com/tos
|
|
SUBSCRIPTION_MINI_APP_URL=
|
|
START_COMMAND_DESCRIPTION=
|
|
|
|
# YooKassa Payment Gateway Configuration
|
|
YOOKASSA_SHOP_ID=your_shop_id
|
|
YOOKASSA_SECRET_KEY=your_secret_key
|
|
YOOKASSA_WEBHOOK_BASE_URL=https://webhooks.yourdomain.tld
|
|
YOOKASSA_RETURN_URL=https://t.me/your_bot
|
|
YOOKASSA_DEFAULT_RECEIPT_EMAIL=your_email@example.com
|
|
YOOKASSA_VAT_CODE=1
|
|
YOOKASSA_PAYMENT_MODE=full_prepayment
|
|
YOOKASSA_PAYMENT_SUBJECT=payment
|
|
|
|
# Telegram Webhook Configuration (Optional)
|
|
# If unset, bot will use polling while YooKassa uses webhooks.
|
|
TELEGRAM_WEBHOOK_BASE_URL=https://webhooks.yourdomain.tld
|
|
|
|
# Payment Methods
|
|
YOOKASSA_ENABLED=True
|
|
STARS_ENABLED=True
|
|
TRIBUTE_ENABLED=True
|
|
|
|
# Subscription Options
|
|
1_MONTH_ENABLED=True
|
|
RUB_PRICE_1_MONTH=150
|
|
STARS_PRICE_1_MONTH=0
|
|
TRIBUTE_LINK_1_MONTH=
|
|
|
|
3_MONTHS_ENABLED=True
|
|
RUB_PRICE_3_MONTHS=300
|
|
STARS_PRICE_3_MONTHS=0
|
|
TRIBUTE_LINK_3_MONTHS=
|
|
|
|
6_MONTHS_ENABLED=True
|
|
RUB_PRICE_6_MONTHS=500
|
|
STARS_PRICE_6_MONTHS=0
|
|
TRIBUTE_LINK_6_MONTHS=
|
|
|
|
12_MONTHS_ENABLED=True
|
|
RUB_PRICE_12_MONTHS=900
|
|
STARS_PRICE_12_MONTHS=0
|
|
TRIBUTE_LINK_12_MONTHS=
|
|
# API key for verifying Tribute webhook signatures
|
|
TRIBUTE_API_KEY=
|
|
|
|
# Subscription Notifications
|
|
SUBSCRIPTION_NOTIFICATIONS_ENABLED=True
|
|
SUBSCRIPTION_NOTIFY_ON_EXPIRE=True
|
|
SUBSCRIPTION_NOTIFY_AFTER_EXPIRE=True
|
|
SUBSCRIPTION_NOTIFY_DAYS_BEFORE=3
|
|
|
|
# Referral Bonus Days
|
|
REFERRAL_BONUS_DAYS_1_MONTH=3
|
|
REFERRAL_BONUS_DAYS_3_MONTHS=7
|
|
REFERRAL_BONUS_DAYS_6_MONTHS=15
|
|
REFERRAL_BONUS_DAYS_12_MONTHS=30
|
|
REFEREE_BONUS_DAYS_1_MONTH=1
|
|
REFEREE_BONUS_DAYS_3_MONTHS=3
|
|
REFEREE_BONUS_DAYS_6_MONTHS=7
|
|
REFEREE_BONUS_DAYS_12_MONTHS=15
|
|
|
|
# Panel API Configuration
|
|
PANEL_API_URL=http://your_panel_api_url/api
|
|
PANEL_API_KEY=your_panel_api_key
|
|
PANEL_WEBHOOK_SECRET= # secret used to verify panel webhook signatures
|
|
|
|
# User traffic limits (applied for all users)
|
|
# 0 means unlimited
|
|
USER_TRAFFIC_LIMIT_GB=0
|
|
USER_TRAFFIC_STRATEGY="NO_RESET"
|
|
|
|
# Default Inbounds for Users (Optional, comma-separated UUIDs)
|
|
USER_INBOUND_UUIDS=uuid1,uuid2,uuid3
|
|
|
|
# Trial Settings
|
|
TRIAL_ENABLED=True
|
|
TRIAL_DURATION_DAYS=5
|
|
TRIAL_TRAFFIC_LIMIT_GB=0 # 0 for unlimited
|
|
TRIAL_TRAFFIC_STRATEGY="NO_RESET"
|
|
|
|
# Web Server Settings (for handling webhooks)
|
|
WEB_SERVER_HOST="0.0.0.0"
|
|
WEB_SERVER_PORT=8080
|
|
|
|
# Admin Panel Log Pagination
|
|
LOGS_PAGE_SIZE=10
|