The admin API (ban, unban, mutex, DALL-E toggles, pprof) had no authentication. Every request now needs 'Authorization: Bearer <bot.admin_api_token>'. Without a configured token all requests are rejected. (cherry picked from commit 3fb544687d8cd8563f1e4e1720de1ef832653457) Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
36 lines
981 B
Plaintext
36 lines
981 B
Plaintext
bot:
|
|
socks_proxy:
|
|
host: 127.0.0.1:9996
|
|
username: test
|
|
password: username
|
|
tor_proxy:
|
|
host: 127.0.0.1:9050
|
|
http_proxy: ""
|
|
lnurl_public_host_name: "https://mylnurl.com"
|
|
lnurl_server: "http://127.0.0.1:5454" # or http://0.0.0.0:5454 depending on your configuration
|
|
lnurl_image: true
|
|
admin_api_host: localhost:6060
|
|
admin_api_token: "" # required for the admin API: send it as "Authorization: Bearer <token>"
|
|
telegram:
|
|
message_dispose_duration: 10
|
|
api_key: "1234"
|
|
lnbits:
|
|
url: "http://127.0.0.1:5000"
|
|
admin_key: "1234"
|
|
admin_id: "1234"
|
|
webhook_server: "http://0.0.0.0:5588"
|
|
lnbits_public_url: "link.mylnurl.com"
|
|
database:
|
|
db_path: "data/bot.db"
|
|
buntdb_path: "data/bunt.db"
|
|
transactions_path: "data/transactions.db"
|
|
shop_buntdb_path: "data/shop.db"
|
|
groupsdb_path: "data/groups.db"
|
|
generate:
|
|
open_ai_bearer_token: "token_here"
|
|
dalle_key: "asd"
|
|
dalle_price: 1000
|
|
worker: 2
|
|
nostr:
|
|
private_key: "hex private key here"
|