hub: clarify WEB_PORT is localhost-only; remote access via hub_p2p

This commit is contained in:
Liang Jiaqing committed 2026-11-02 18:03:18 +08:00
1 parent 29c93b83c4
commit aab769f601
1 file changed
+1 -1
+1 -1
View File
@@ -9,7 +9,7 @@ HTTP (errors = {'error','code'} + status: offline/gone 404, busy 409, timeout 50
"""
import os, re, sys, json, time, asyncio, threading, random, hmac, hashlib
PORT = int(os.environ.get('GA_HUB_PORT', 19736))
WEB_PORT = int(os.environ.get('GA_HUB_WEB_PORT', PORT + 1)) # the only face fit to be tunnelled out (frp this one)
WEB_PORT = int(os.environ.get('GA_HUB_WEB_PORT', PORT + 1)) # localhost only; remote access goes via hub_p2p, never port-forward this
TOKEN = os.environ.get('GA_HUB_TOKEN') or ''.join(random.choices('abcdefghijkmnpqrstuvwxyz23456789', k=6))
URL = os.environ.get('GA_HUB', f'ws://127.0.0.1:{PORT}/ws')
TITLE_MIN = 12 # a too short last input gets the previous one prepended